File: dde_proc.h

package info (click to toggle)
wine 0.0.980315-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 10,136 kB
  • ctags: 26,112
  • sloc: ansic: 156,310; makefile: 1,160; yacc: 807; perl: 655; lex: 555; sh: 304
file content (63 lines) | stat: -rw-r--r-- 2,268 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/***************************************************************************
 * Copyright 1995, Technion, Israel Institute of Technology
 * Electrical Eng, Software Lab.
 * Author:    Michael Veksler.
 ***************************************************************************
 * File:      dde_proc.h
 * Purpose :  DDE signals and processes functionality for DDE
 ***************************************************************************
 */
#ifndef __WINE_DDE_PROC_H
#define __WINE_DDE_PROC_H

#ifdef CONFIG_IPC

#include <setjmp.h>
#include "wintypes.h"
#include "windows.h"
#define DDE_PROCS 64
#define DDE_WINDOWS 64
struct _dde_proc {
    int msg;			/* message queue for this process */
    int shmid;			/* first shared memory block id. */
    int sem;			/* semaphore for fragment allocation */
    int pid;
} ;
typedef struct _dde_proc *dde_proc;

extern sigjmp_buf env_wait_x;
enum stop_wait_op {		/* The action to be taken upon SIGUSR2 */
    CONT,			/* Don't do anything */
    STOP_WAIT_ACK,		/* Use siglongjmp to stop wait_ack() */
    STOP_WAIT_X			/* siglongjmp to stop MSG_WaitXEvent() */
};

typedef struct {
    WORD  proc_idx;		/* index into wine's process table  */
    HWND16  wnd;		/* Window on the local proccess */
} WND_DATA;
extern enum stop_wait_op stop_wait_op;
extern int had_SIGUSR2;

extern int curr_proc_idx;
void stop_wait(int a);		   /* signal handler for SIGUSR2
				      (interrupts "select" system call) */
void dde_proc_init(dde_proc proc); /* init proc array */
void dde_proc_done(dde_proc proc); /* delete a proc entry */
void dde_proc_refresh(dde_proc proc); /* delete entry, if old junk */
void dde_proc_add(dde_proc proc);  /* Add current proc to proc array */
void dde_msg_setup(int *msg_ptr);
int  dde_reschedule();
void dde_wnd_setup();		   /* setup Data structure of DDE windows */

/* Send ack. to hnd indicating that posted/sent msg. got to destination*/
void dde_proc_send_ack(HWND16 wnd, BOOL32 val);
BOOL32 DDE_PostMessage( MSG16 *msg);
BOOL32 DDE_SendMessage( MSG16 *msg);
int DDE_GetRemoteMessage();
void DDE_DestroyWindow(HWND16 hwnd); /* delete DDE info regarding hwnd */
void DDE_TestDDE(HWND16 hwnd);	   /* do we have dde handling in the window ?*/

#endif  /* CONFIG_IPC */

#endif /* __WINE_DDE_PROC_H */