Release 950727
[wine] / include / dde_mem.h
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
12 #include "wintypes.h"
13 #include "global.h"
14 #include "shm_block.h"
15
16 #define DDE_HANDLES 0x0400
17 #define is_dde_handle(block) ( (block) >= (1<<15)  &&  (block) < (1<<15)+DDE_HANDLES )
18 typedef struct {
19     int shmid;
20     REL_PTR rel;
21 }DDE_HWND;
22
23 WORD DDE_SyncHandle(HGLOBAL handle, WORD sel);
24 void *DDE_malloc(unsigned int flags,unsigned long size, SHMDATA *shmdata);
25 HANDLE DDE_GlobalReAlloc(WORD,long,WORD);
26 HANDLE DDE_GlobalFree(WORD block);
27 void *DDE_AttachHandle(HGLOBAL handle, SEGPTR *segptr);
28 WORD DDE_GlobalHandleToSel( HGLOBAL handle );
29 int DDE_GlobalUnlock(int);
30 HANDLE DDE_GlobalSize(WORD);
31 HANDLE DDE_GlobalHandle(WORD);
32 HANDLE DDE_GlobalFlags(WORD);
33
34 #endif /* __WINE_DDE_MEM_H */