1 /***************************************************************************
2 * Copyright 1995, Technion, Israel Institute of Technology
3 * Electrical Eng, Software Lab.
4 * Author: Michael Veksler.
5 ***************************************************************************
7 * Purpose : shared DDE memory functionality for DDE
8 ***************************************************************************
10 #ifndef __WINE_DDE_MEM_H
11 #define __WINE_DDE_MEM_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 )
26 WORD
DDE_SyncHandle(HGLOBAL16 handle
, WORD sel
);
27 void *DDE_malloc(unsigned int flags
,unsigned long size
, SHMDATA
*shmdata
);
28 HANDLE16
DDE_GlobalReAlloc(WORD
,long,WORD
);
29 HGLOBAL16
DDE_GlobalFree(HGLOBAL16 block
);
30 void *DDE_AttachHandle(HGLOBAL16 handle
, SEGPTR
*segptr
);
31 WORD
DDE_GlobalHandleToSel( HGLOBAL16 handle
);
32 int DDE_GlobalUnlock(int);
33 HANDLE16
DDE_GlobalSize(WORD
);
34 HANDLE16
DDE_GlobalHandle(WORD
);
35 HANDLE16
DDE_GlobalFlags(WORD
);
37 #endif /* CONFIG_IPC */
39 #endif /* __WINE_DDE_MEM_H */