Ignore:
Timestamp:
Sep 22, 2010, 11:21:52 PM (12 years ago)
Author:
Sam Hocevar
Message:

Add a mechanism for Win32 diversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/lib-load.h

    r4253 r4655  
    4242             * as the process is launched. */ \
    4343        } while(0)
     44
     45typedef struct
     46{
     47    char const *lib, *name;
     48    void **old;
     49    void *new;
     50}
     51zzuf_table_t;
     52
     53#   define DIVERT(x) { "kernel32.dll", #x, &x##_orig, x##_new }
     54#   define DIVERT_END { NULL, NULL, NULL, NULL }
     55
     56extern zzuf_table_t table_stream[];
     57
    4458#endif
    4559
Note: See TracChangeset for help on using the changeset viewer.