Removed dependencies on the internals of the CLASS structure.
[wine/multimedia.git] / include / global.h
blob987e0c6dd9017de009892739b074d26457a02054
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, unsigned char selflags );
16 extern BOOL16 GLOBAL_FreeBlock( HGLOBAL16 handle );
17 extern BOOL16 GLOBAL_MoveBlock( HGLOBAL16 handle, const void *ptr, DWORD size );
18 extern HGLOBAL16 GLOBAL_Alloc( WORD flags, DWORD size, HGLOBAL16 hOwner, unsigned char selflags );
20 /* memory/virtual.c */
21 extern DWORD VIRTUAL_GetPageSize(void);
22 extern DWORD VIRTUAL_GetGranularity(void);
23 extern LPVOID VIRTUAL_MapFileW( LPCWSTR name );
24 extern LPVOID VIRTUAL_mmap( int unix_handle, LPVOID start, DWORD size,
25 DWORD offset, int prot, int flags );
27 typedef BOOL (*HANDLERPROC)(LPVOID, LPCVOID);
28 extern BOOL VIRTUAL_SetFaultHandler(LPCVOID addr, HANDLERPROC proc, LPVOID arg);
29 extern DWORD VIRTUAL_HandleFault(LPCVOID addr);
31 /* memory/atom.c */
32 extern BOOL ATOM_Init( WORD globalTableSel );
34 #endif /* __WINE_GLOBAL_H */