source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/cchannel.h@ 1169

Last change on this file since 1169 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 2.8 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef H_CCHANNEL
7#define H_CCHANNEL
8
9#include <pchannel.h>
10
11#define VCAPITYPE _stdcall
12#define VCEXPORT
13
14typedef VOID _stdcall CHANNEL_INIT_EVENT_FN(LPVOID pInitHandle,UINT event,LPVOID pData,UINT dataLength);
15typedef CHANNEL_INIT_EVENT_FN *PCHANNEL_INIT_EVENT_FN;
16
17#define CHANNEL_EVENT_INITIALIZED 0
18#define CHANNEL_EVENT_CONNECTED 1
19#define CHANNEL_EVENT_V1_CONNECTED 2
20#define CHANNEL_EVENT_DISCONNECTED 3
21#define CHANNEL_EVENT_TERMINATED 4
22
23typedef VOID _stdcall CHANNEL_OPEN_EVENT_FN(DWORD openHandle,UINT event,LPVOID pData,UINT32 dataLength,UINT32 totalLength,UINT32 dataFlags);
24typedef CHANNEL_OPEN_EVENT_FN *PCHANNEL_OPEN_EVENT_FN;
25
26#define CHANNEL_EVENT_DATA_RECEIVED 10
27#define CHANNEL_EVENT_WRITE_COMPLETE 11
28#define CHANNEL_EVENT_WRITE_CANCELLED 12
29
30#define CHANNEL_RC_OK 0
31#define CHANNEL_RC_ALREADY_INITIALIZED 1
32#define CHANNEL_RC_NOT_INITIALIZED 2
33#define CHANNEL_RC_ALREADY_CONNECTED 3
34#define CHANNEL_RC_NOT_CONNECTED 4
35#define CHANNEL_RC_TOO_MANY_CHANNELS 5
36#define CHANNEL_RC_BAD_CHANNEL 6
37#define CHANNEL_RC_BAD_CHANNEL_HANDLE 7
38#define CHANNEL_RC_NO_BUFFER 8
39#define CHANNEL_RC_BAD_INIT_HANDLE 9
40#define CHANNEL_RC_NOT_OPEN 10
41#define CHANNEL_RC_BAD_PROC 11
42#define CHANNEL_RC_NO_MEMORY 12
43#define CHANNEL_RC_UNKNOWN_CHANNEL_NAME 13
44#define CHANNEL_RC_ALREADY_OPEN 14
45#define CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY 15
46#define CHANNEL_RC_NULL_DATA 16
47#define CHANNEL_RC_ZERO_LENGTH 17
48
49#define VIRTUAL_CHANNEL_VERSION_WIN2000 1
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55 typedef UINT _stdcall VIRTUALCHANNELINIT(LPVOID *ppInitHandle,PCHANNEL_DEF pChannel,INT channelCount,ULONG versionRequested,PCHANNEL_INIT_EVENT_FN pChannelInitEventProc);
56 typedef VIRTUALCHANNELINIT *PVIRTUALCHANNELINIT;
57 typedef UINT _stdcall VIRTUALCHANNELOPEN(LPVOID pInitHandle,LPDWORD pOpenHandle,PCHAR pChannelName,PCHANNEL_OPEN_EVENT_FN pChannelOpenEventProc);
58 typedef VIRTUALCHANNELOPEN *PVIRTUALCHANNELOPEN;
59 typedef UINT _stdcall VIRTUALCHANNELCLOSE(DWORD openHandle);
60 typedef VIRTUALCHANNELCLOSE *PVIRTUALCHANNELCLOSE;
61 typedef UINT _stdcall VIRTUALCHANNELWRITE(DWORD openHandle,LPVOID pData,ULONG dataLength,LPVOID pUserData);
62 typedef VIRTUALCHANNELWRITE *PVIRTUALCHANNELWRITE;
63
64 typedef struct tagCHANNEL_ENTRY_POINTS {
65 DWORD cbSize;
66 DWORD protocolVersion;
67 PVIRTUALCHANNELINIT pVirtualChannelInit;
68 PVIRTUALCHANNELOPEN pVirtualChannelOpen;
69 PVIRTUALCHANNELCLOSE pVirtualChannelClose;
70 PVIRTUALCHANNELWRITE pVirtualChannelWrite;
71 } CHANNEL_ENTRY_POINTS,*PCHANNEL_ENTRY_POINTS;
72
73 typedef WINBOOL _stdcall VIRTUALCHANNELENTRY(PCHANNEL_ENTRY_POINTS pEntryPoints);
74 typedef VIRTUALCHANNELENTRY *PVIRTUALCHANNELENTRY;
75
76#ifdef __cplusplus
77}
78#endif
79#endif
Note: See TracBrowser for help on using the repository browser.