Added debugstr_guid function and used it to replace
[wine] / include / global.h
1 /*
2  * Global heap declarations
3  *
4  * Copyright 1995 Alexandre Julliard
5  */
6
7 #ifndef __WINE_GLOBAL_H
8 #define __WINE_GLOBAL_H
9
10 #include "windef.h"
11
12 typedef struct
13 {
14     HGLOBAL16 handle;
15     WORD sel;
16     int shmid;
17 } SHMDATA;
18
19 /* memory/global.c */
20 extern HGLOBAL16 GLOBAL_CreateBlock( UINT16 flags, const void *ptr, DWORD size,
21                                      HGLOBAL16 hOwner, BOOL16 isCode,
22                                      BOOL16 is32Bit, BOOL16 isReadOnly,
23                                      SHMDATA *shmdata);
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,
28                                BOOL16 isReadOnly );
29
30 extern WORD WINAPI GlobalHandleToSel16( HGLOBAL16 handle );
31
32 /* memory/virtual.c */
33 extern BOOL VIRTUAL_Init( void );
34 extern DWORD VIRTUAL_GetPageSize(void);
35 extern DWORD VIRTUAL_GetGranularity(void);
36 extern LPVOID VIRTUAL_MapFileW( LPCWSTR name );
37
38 typedef BOOL (*HANDLERPROC)(LPVOID, LPCVOID);
39 extern BOOL VIRTUAL_SetFaultHandler(LPCVOID addr, HANDLERPROC proc, LPVOID arg);
40 extern BOOL VIRTUAL_HandleFault(LPCVOID addr);
41
42 /* memory/atom.c */
43 extern BOOL ATOM_Init( WORD globalTableSel );
44
45 #endif  /* __WINE_GLOBAL_H */