Start using winedos handlers for all interrupts.
[wine/multimedia.git] / include / global.h
blobf7d49ab67ef92647e5839ba571b0d8a4c29cf8b2
1 /*
2 * Global heap declarations
4 * Copyright 1995 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_GLOBAL_H
22 #define __WINE_GLOBAL_H
24 #include "windef.h"
25 #include "wine/windef16.h"
26 #include "wine/library.h"
28 /* memory/global.c */
29 extern HGLOBAL16 GLOBAL_CreateBlock( UINT16 flags, const void *ptr, DWORD size,
30 HGLOBAL16 hOwner, unsigned char selflags );
31 extern BOOL16 GLOBAL_FreeBlock( HGLOBAL16 handle );
32 extern BOOL16 GLOBAL_MoveBlock( HGLOBAL16 handle, const void *ptr, DWORD size );
33 extern HGLOBAL16 GLOBAL_Alloc( WORD flags, DWORD size, HGLOBAL16 hOwner, unsigned char selflags );
35 /* memory/virtual.c */
36 typedef BOOL (*HANDLERPROC)(LPVOID, LPCVOID);
37 extern BOOL VIRTUAL_SetFaultHandler(LPCVOID addr, HANDLERPROC proc, LPVOID arg);
38 extern DWORD VIRTUAL_HandleFault(LPCVOID addr);
40 #endif /* __WINE_GLOBAL_H */