2 * Global heap declarations
4 * Copyright 1995 Alexandre Julliard
7 #ifndef __WINE_GLOBAL_H
8 #define __WINE_GLOBAL_H
20 extern HGLOBAL16
GLOBAL_CreateBlock( UINT16 flags
, const void *ptr
, DWORD size
,
21 HGLOBAL16 hOwner
, BOOL16 isCode
,
22 BOOL16 is32Bit
, BOOL16 isReadOnly
,
24 extern BOOL16
GLOBAL_FreeBlock( HGLOBAL16 handle
);
25 extern BOOL16
GLOBAL_MoveBlock( HGLOBAL16 handle
, const void *ptr
, DWORD size
);
26 extern HGLOBAL16
GLOBAL_Alloc( WORD flags
, DWORD size
, HGLOBAL16 hOwner
,
27 BOOL16 isCode
, BOOL16 is32Bit
,
30 extern WORD WINAPI
GlobalHandleToSel( HGLOBAL16 handle
);
32 /* memory/virtual.c */
33 extern BOOL32
VIRTUAL_Init( void );
34 extern DWORD
VIRTUAL_GetPageSize(void);
35 extern DWORD
VIRTUAL_GetGranularity(void);
36 extern LPVOID
VIRTUAL_MapFileW( LPCWSTR name
);
38 typedef BOOL32 (*HANDLERPROC
)(LPVOID
, LPVOID
);
39 extern BOOL32
VIRTUAL_SetFaultHandler(LPVOID addr
, HANDLERPROC proc
, LPVOID arg
);
40 extern BOOL32
VIRTUAL_HandleFault(LPVOID addr
);
43 extern BOOL32
ATOM_Init( WORD globalTableSel
);
45 #endif /* __WINE_GLOBAL_H */