Fixed OleLoadFromStream: Dereference ppvObj and get IPersistStream
[wine.git] / include / global.h
blob9314782358b7fcc4a3acb6032dcee44f797094c9
1 /*
2 * Global heap declarations
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_GLOBAL_H
8 #define __WINE_GLOBAL_H
10 #include "windef.h"
11 #include "wine/windef16.h"
13 /* memory/global.c */
14 extern HGLOBAL16 GLOBAL_CreateBlock( UINT16 flags, const void *ptr, DWORD size,
15 HGLOBAL16 hOwner, BOOL16 isCode,
16 BOOL16 is32Bit, BOOL16 isReadOnly);
17 extern BOOL16 GLOBAL_FreeBlock( HGLOBAL16 handle );
18 extern BOOL16 GLOBAL_MoveBlock( HGLOBAL16 handle, const void *ptr, DWORD size );
19 extern HGLOBAL16 GLOBAL_Alloc( WORD flags, DWORD size, HGLOBAL16 hOwner,
20 BOOL16 isCode, BOOL16 is32Bit,
21 BOOL16 isReadOnly );
23 /* memory/virtual.c */
24 extern DWORD VIRTUAL_GetPageSize(void);
25 extern DWORD VIRTUAL_GetGranularity(void);
26 extern LPVOID VIRTUAL_MapFileW( LPCWSTR name );
27 extern LPVOID VIRTUAL_mmap( int unix_handle, LPVOID start, DWORD size,
28 DWORD offset, int prot, int flags );
30 typedef BOOL (*HANDLERPROC)(LPVOID, LPCVOID);
31 extern BOOL VIRTUAL_SetFaultHandler(LPCVOID addr, HANDLERPROC proc, LPVOID arg);
32 extern DWORD VIRTUAL_HandleFault(LPCVOID addr);
34 /* memory/atom.c */
35 extern BOOL ATOM_Init( WORD globalTableSel );
37 #endif /* __WINE_GLOBAL_H */