21 #ifndef __WINE_WINE_LIBRARY_H 22 #define __WINE_WINE_LIBRARY_H 63 extern const char * (*__wine_dbgstr_an)(
const char *
s,
int n );
64 extern const char * (*__wine_dbgstr_wn)(
const WCHAR *
s,
int n );
109 # ifdef WINE_EXPORT_LDT_COPY 110 # define WINE_LDT_EXTERN __declspec(dllexport) 112 # define WINE_LDT_EXTERN __declspec(dllimport) 115 # define WINE_LDT_EXTERN extern 125 #define WINE_LDT_FLAGS_DATA 0x13 126 #define WINE_LDT_FLAGS_STACK 0x17 127 #define WINE_LDT_FLAGS_CODE 0x1b 128 #define WINE_LDT_FLAGS_TYPE_MASK 0x1f 129 #define WINE_LDT_FLAGS_32BIT 0x40 130 #define WINE_LDT_FLAGS_ALLOCATED 0x80 175 return (
dw[0] |
dw[1]) == 0;
182 # define __DEFINE_GET_SEG(seg) \ 183 static inline unsigned short wine_get_##seg(void) \ 184 { unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; } 185 # define __DEFINE_SET_SEG(seg) \ 186 static inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); } 187 # elif defined(_MSC_VER) 188 # define __DEFINE_GET_SEG(seg) \ 189 extern inline unsigned short wine_get_##seg(void) \ 190 { unsigned short res; __asm { mov res, seg } return res; } 191 # define __DEFINE_SET_SEG(seg) \ 192 extern inline void wine_set_##seg(unsigned short val) { __asm { mov seg, val } } 194 # define __DEFINE_GET_SEG(seg) extern unsigned short wine_get_##seg(void); 195 # define __DEFINE_SET_SEG(seg) extern void wine_set_##seg(unsigned int); 198 # define __DEFINE_GET_SEG(seg) inline static unsigned short wine_get_##seg(void) { return 0; } 199 # define __DEFINE_SET_SEG(seg) inline static void wine_set_##seg(int val) { } 210 #undef __DEFINE_GET_SEG 211 #undef __DEFINE_SET_SEG struct _LDT_ENTRY::@343::@345 Bits
static void * wine_ldt_get_base(const LDT_ENTRY *ent)
static void wine_ldt_free_fs(unsigned short sel)
void DECLSPEC_NORETURN wine_switch_to_stack(void(*func)(void *), void *arg, void *stack)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
int(* __wine_dbg_vlog)(unsigned int cls, const char *channel, const char *function, const char *format, va_list args)
GLuint GLuint GLsizei count
void wine_exec_wine_binary(const char *name, char **argv, char **envp, int use_preloader)
static void wine_ldt_set_flags(LDT_ENTRY *ent, unsigned char flags)
void wine_dbg_add_option(const char *name, unsigned char set, unsigned char clear)
int wine_ldt_is_system(unsigned short sel)
unsigned short wine_ldt_alloc_entries(int count)
void(* load_dll_callback_t)(void *, const char *)
#define WINE_LDT_FLAGS_32BIT
void * wine_dlsym(void *handle, const char *symbol, char *error, size_t errorsize)
void wine_ldt_get_entry(unsigned short sel, LDT_ENTRY *entry)
#define DECLSPEC_NORETURN
void wine_ldt_init_locking(void(*lock_func)(void), void(*unlock_func)(void))
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
void wine_dll_unload(void *handle)
void wine_free_pe_load_area(void)
int(* __wine_dbg_vprintf)(const char *format, va_list args)
void wine_mmap_remove_reserved_area(void *addr, size_t size, int unmap)
void wine_set_pe_load_area(void *base, size_t size)
#define __DEFINE_SET_SEG(seg)
REFIID LPVOID DWORD_PTR dw
void * wine_ldt_get_ptr(unsigned short sel, unsigned int offset)
union _LDT_ENTRY::@343 HighWord
void * wine_dlopen(const char *filename, int flag, char *error, size_t errorsize)
static void wine_ldt_set_limit(LDT_ENTRY *ent, unsigned int limit)
void wine_dll_set_callback(load_dll_callback_t load)
static void wine_ldt_init_fs(unsigned short sel, const LDT_ENTRY *entry)
static void wine_ldt_set_base(LDT_ENTRY *ent, const void *base)
int wine_mmap_is_in_reserved_area(void *addr, size_t size)
int wine_ldt_set_entry(unsigned short sel, const LDT_ENTRY *entry)
const char * wine_get_build_dir(void)
GLenum const GLvoid * addr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
unsigned short wine_ldt_realloc_entries(unsigned short sel, int oldcount, int newcount)
void wine_mmap_add_reserved_area(void *addr, size_t size)
static char argv0[MAX_PATH]
#define __DEFINE_GET_SEG(seg)
static BOOL file_exists(const WCHAR *file_name)
void wine_init(int argc, char *argv[], char *error, int error_size)
void wine_init_argv0_path(const char *argv0)
static int wine_ldt_is_empty(const LDT_ENTRY *ent)
void * wine_anon_mmap(void *start, size_t size, int prot, int flags)
void * wine_dll_load_main_exe(const char *name, char *error, int errorsize, int test_only, int *file_exists)
void * wine_dll_load(const char *filename, char *error, int errorsize, int *file_exists)
void wine_ldt_free_entries(unsigned short sel, int count)
char ** __wine_main_environ
const char * wine_get_server_dir(void)
static unsigned short wine_ldt_alloc_fs(void)
int wine_dll_get_owner(const char *name, char *buffer, int size, int *file_exists)
static unsigned int wine_ldt_get_limit(const LDT_ENTRY *ent)
WINE_LDT_EXTERN struct __wine_ldt_copy wine_ldt_copy
int wine_dlclose(void *handle, char *error, size_t errorsize)
WCHAR ** __wine_main_wargv
const char * wine_get_data_dir(void)
const char * wine_get_user_name(void)
int wine_dbg_parse_options(const char *str)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
const char * wine_get_config_dir(void)
static unsigned char wine_ldt_get_flags(const LDT_ENTRY *ent)