Removed non-portable hacks and replaced them with more general
[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
13 #ifdef CONFIG_IPC
14
15 #include "windef.h"
16 #include "global.h"
17 #include "shm_block.h"
18
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;
25
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);
36
37 #endif  /* CONFIG_IPC */
38
39 #endif /* __WINE_DDE_MEM_H */