Added several file server requests
[wine.git] / include / dde_proc.h
blobe8a7ab1194cbca8a0be067ed8680b1346a6de08b
1 /***************************************************************************
2 * Copyright 1995, Technion, Israel Institute of Technology
3 * Electrical Eng, Software Lab.
4 * Author: Michael Veksler.
5 ***************************************************************************
6 * File: dde_proc.h
7 * Purpose : DDE signals and processes functionality for DDE
8 ***************************************************************************
9 */
10 #ifndef __WINE_DDE_PROC_H
11 #define __WINE_DDE_PROC_H
13 #ifdef CONFIG_IPC
15 #include <setjmp.h>
16 #include "wintypes.h"
17 #include "windows.h"
18 #define DDE_PROCS 64
19 #define DDE_WINDOWS 64
20 struct _dde_proc {
21 int msg; /* message queue for this process */
22 int shmid; /* first shared memory block id. */
23 int sem; /* semaphore for fragment allocation */
24 int pid;
25 } ;
26 typedef struct _dde_proc *dde_proc;
28 extern sigjmp_buf env_wait_x;
29 enum stop_wait_op { /* The action to be taken upon SIGUSR2 */
30 CONT, /* Don't do anything */
31 STOP_WAIT_ACK, /* Use siglongjmp to stop wait_ack() */
32 STOP_WAIT_X /* siglongjmp to stop MSG_WaitXEvent() */
35 typedef struct {
36 WORD proc_idx; /* index into wine's process table */
37 HWND16 wnd; /* Window on the local proccess */
38 } WND_DATA;
39 extern enum stop_wait_op stop_wait_op;
40 extern int had_SIGUSR2;
42 extern int curr_proc_idx;
43 void stop_wait(int a); /* signal handler for SIGUSR2
44 (interrupts "select" system call) */
45 void dde_proc_init(dde_proc proc); /* init proc array */
46 void dde_proc_done(dde_proc proc); /* delete a proc entry */
47 void dde_proc_refresh(dde_proc proc); /* delete entry, if old junk */
48 void dde_proc_add(dde_proc proc); /* Add current proc to proc array */
49 void dde_msg_setup(int *msg_ptr);
50 int dde_reschedule();
51 void dde_wnd_setup(); /* setup Data structure of DDE windows */
53 /* Send ack. to hnd indicating that posted/sent msg. got to destination*/
54 void dde_proc_send_ack(HWND16 wnd, BOOL32 val);
55 BOOL32 DDE_PostMessage( MSG16 *msg);
56 BOOL32 DDE_SendMessage( MSG16 *msg);
57 int DDE_GetRemoteMessage();
58 void DDE_DestroyWindow(HWND16 hwnd); /* delete DDE info regarding hwnd */
59 void DDE_TestDDE(HWND16 hwnd); /* do we have dde handling in the window ?*/
61 #endif /* CONFIG_IPC */
63 #endif /* __WINE_DDE_PROC_H */