Release 960521
[wine/multimedia.git] / include / dde_mem.h
blob3bc8dfaf5e76c8290e6932468bdc4c3a3c53f2a8
1 /***************************************************************************
2 * Copyright 1995, Technion, Israel Institute of Technology
3 * Electrical Eng, Software Lab.
4 * Author: Michael Veksler.
5 ***************************************************************************
6 * File: dde_mem.h
7 * Purpose : shared DDE memory functionality for DDE
8 ***************************************************************************
9 */
10 #ifndef __WINE_DDE_MEM_H
11 #define __WINE_DDE_MEM_H
13 #ifdef CONFIG_IPC
15 #include "wintypes.h"
16 #include "global.h"
17 #include "shm_block.h"
19 #define DDE_HANDLES 0x0400
20 #define is_dde_handle(block) ( (block) >= (1<<15) && (block) < (1<<15)+DDE_HANDLES )
21 typedef struct {
22 int shmid;
23 REL_PTR rel;
24 }DDE_HWND;
26 WORD DDE_SyncHandle(HGLOBAL handle, WORD sel);
27 void *DDE_malloc(unsigned int flags,unsigned long size, SHMDATA *shmdata);
28 HANDLE DDE_GlobalReAlloc(WORD,long,WORD);
29 HANDLE DDE_GlobalFree(WORD block);
30 void *DDE_AttachHandle(HGLOBAL handle, SEGPTR *segptr);
31 WORD DDE_GlobalHandleToSel( HGLOBAL handle );
32 int DDE_GlobalUnlock(int);
33 HANDLE DDE_GlobalSize(WORD);
34 HANDLE DDE_GlobalHandle(WORD);
35 HANDLE DDE_GlobalFlags(WORD);
37 #endif /* CONFIG_IPC */
39 #endif /* __WINE_DDE_MEM_H */