21#ifndef __WINE_WINE_LIBRARY_H
22#define __WINE_WINE_LIBRARY_H
63extern const char * (*__wine_dbgstr_an)(
const char *
s,
int n );
64extern 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
static BOOL file_exists(const WCHAR *file_name)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLuint GLuint GLsizei count
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
REFIID LPVOID DWORD_PTR dw
void(* load_dll_callback_t)(void *, const char *)
void wine_ldt_free_entries(unsigned short sel, int count)
void wine_exec_wine_binary(const char *name, char **argv, char **envp, int use_preloader)
void * wine_ldt_get_ptr(unsigned short sel, unsigned int offset)
void wine_ldt_init_locking(void(*lock_func)(void), void(*unlock_func)(void))
static unsigned char wine_ldt_get_flags(const LDT_ENTRY *ent)
#define WINE_LDT_FLAGS_32BIT
#define __DEFINE_SET_SEG(seg)
unsigned short wine_ldt_realloc_entries(unsigned short sel, int oldcount, int newcount)
const char * wine_get_build_dir(void)
static int wine_ldt_is_empty(const LDT_ENTRY *ent)
void wine_free_pe_load_area(void)
void * wine_dlopen(const char *filename, int flag, char *error, size_t errorsize)
#define __DEFINE_GET_SEG(seg)
void wine_set_pe_load_area(void *base, size_t size)
const char * wine_get_user_name(void)
void wine_dbg_add_option(const char *name, unsigned char set, unsigned char clear)
unsigned short wine_ldt_alloc_entries(int count)
int wine_dbg_parse_options(const char *str)
const char * wine_get_config_dir(void)
void wine_dll_set_callback(load_dll_callback_t load)
WINE_LDT_EXTERN struct __wine_ldt_copy wine_ldt_copy
int wine_mmap_is_in_reserved_area(void *addr, size_t size)
void wine_ldt_get_entry(unsigned short sel, LDT_ENTRY *entry)
char ** __wine_main_environ
static void wine_ldt_set_base(LDT_ENTRY *ent, const void *base)
void * wine_dll_load(const char *filename, char *error, int errorsize, int *file_exists)
const char * wine_get_data_dir(void)
void wine_mmap_add_reserved_area(void *addr, size_t size)
int wine_dlclose(void *handle, char *error, size_t errorsize)
void * wine_anon_mmap(void *start, size_t size, int prot, int flags)
WCHAR ** __wine_main_wargv
static unsigned short wine_ldt_alloc_fs(void)
const char * wine_get_server_dir(void)
int wine_ldt_set_entry(unsigned short sel, const LDT_ENTRY *entry)
void * wine_dlsym(void *handle, const char *symbol, char *error, size_t errorsize)
static void wine_ldt_set_limit(LDT_ENTRY *ent, unsigned int limit)
int wine_ldt_is_system(unsigned short sel)
static void * wine_ldt_get_base(const LDT_ENTRY *ent)
static unsigned int wine_ldt_get_limit(const LDT_ENTRY *ent)
void wine_init_argv0_path(const char *argv0)
static void wine_ldt_free_fs(unsigned short sel)
void wine_dll_unload(void *handle)
static void wine_ldt_set_flags(LDT_ENTRY *ent, unsigned char flags)
int(* __wine_dbg_vlog)(unsigned int cls, const char *channel, const char *function, const char *format, va_list args)
int wine_dll_get_owner(const char *name, char *buffer, int size, int *file_exists)
void wine_mmap_remove_reserved_area(void *addr, size_t size, int unmap)
void DECLSPEC_NORETURN wine_switch_to_stack(void(*func)(void *), void *arg, void *stack)
void * wine_dll_load_main_exe(const char *name, char *error, int errorsize, int test_only, int *file_exists)
void wine_init(int argc, char *argv[], char *error, int error_size)
int(* __wine_dbg_vprintf)(const char *format, va_list args)
static void wine_ldt_init_fs(unsigned short sel, const LDT_ENTRY *entry)
#define DECLSPEC_NORETURN
static char argv0[MAX_PATH]
struct _LDT_ENTRY::@357::@359 Bits
union _LDT_ENTRY::@357 HighWord