1 /***************************************************************************
2 * Copyright 1995, Technion, Israel Institute of Technology
3 * Electrical Eng, Software Lab.
4 * Author: Michael Veksler.
5 ***************************************************************************
7 * Purpose : DDE signals and processes functionality for DDE
8 ***************************************************************************
10 #ifndef __WINE_DDE_PROC_H
11 #define __WINE_DDE_PROC_H
16 #define DDE_WINDOWS 64
18 int msg; /* message queue for this process */
19 int shmid; /* first shared memory block id. */
20 int sem; /* semaphore for fragment allocation */
23 typedef struct _dde_proc *dde_proc;
25 extern sigjmp_buf env_wait_x;
26 enum stop_wait_op { /* The action to be taken upon SIGUSR2 */
27 CONT, /* Don't do anything */
28 STOP_WAIT_ACK, /* Use siglongjmp to stop wait_ack() */
29 STOP_WAIT_X /* siglongjmp to stop MSG_WaitXEvent() */
33 WORD proc_idx; /* index into wine's process table */
34 HWND wnd; /* Window on the local proccess */
36 extern enum stop_wait_op stop_wait_op;
37 extern int had_SIGUSR2;
39 extern int curr_proc_idx;
40 void stop_wait(int a); /* signal handler for SIGUSR2
41 (interrupts "select" system call) */
42 void dde_proc_init(dde_proc proc); /* init proc array */
43 void dde_proc_done(dde_proc proc); /* delete a proc entry */
44 void dde_proc_refresh(dde_proc proc); /* delete entry, if old junk */
45 void dde_proc_add(dde_proc proc); /* Add current proc to proc array */
46 void dde_msg_setup(int *msg_ptr);
48 void dde_wnd_setup(); /* setup Data structure of DDE windows */
50 /* Send ack. to hnd indicating that posted/sent msg. got to destination*/
51 void dde_proc_send_ack(HWND wnd, BOOL val);
52 BOOL DDE_PostMessage( MSG *msg);
53 BOOL DDE_SendMessage( MSG *msg);
54 int DDE_GetRemoteMessage();
55 void DDE_DestroyWindow(HWND hwnd); /* delete DDE info regarding hwnd */
56 void DDE_TestDDE(HWND hwnd); /* do we have dde handling in the window ?*/
57 #endif /* __WINE_DDE_PROC_H */