home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
epm603a.zip
/
EPMDDE.ZIP
/
DDESAMP.H
< prev
next >
Wrap
Text File
|
1992-12-09
|
2KB
|
52 lines
/*────────────────────────────────────────────────────────────────────────────┐
│ DDESAMP.H │
│ │
│ Constant and type definitions for DDE Clients connecting to EPM v6.00 │
│ │
│ John Ponzo │
└────────────────────────────────────────────────────────────────────────────*/
#define INCL_GPI
#define INCL_WIN
#define INCL_DOS
#include <os2.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <memory.h>
#include "dialog.h"
#include <dde.h>
#define MSG ULONG
typedef struct _COMMANDDLGSTRUCT{
SHORT Size;
CHAR Buffer[15];
} COMMANDDLGSTRUCT, *PCOMMANDDLGSTRUCT;
MRESULT EXPENTRY CommandDlgBox(HWND hwndDlg, MSG msg, MPARAM mp1, MPARAM mp2);
MRESULT EXPENTRY DdeSampleWndProc( HWND hwnd, MSG msg, MPARAM mp1, MPARAM mp2 );
PDDESTRUCT MakeDDEMsg(USHORT usFormat,PSZ pszItemName,PVOID Data, USHORT usDataSize);
#define ID_WINDOW 256
#define ID_SEND_COMMAND 257
#define ID_INIT_DDE 258
#define ID_TERMINATE_DDE 259
#define ID_EXITPROG 261
#define MAXLEN 255
typedef struct _DDECLIENTINFO {
HWND hwndDDEServer; //hwnd of the connected DDE Server
USHORT usAck; //Acknowledgement flags
BOOL bConnected; //Connected Flag
} DDECLIENTINFO;
typedef DDECLIENTINFO *PDDECLIENTINFO;
#define MSG_LEN 255