Added missing RichEdit defines.
[wine] / include / nb30.h
1 #ifndef NCB_INCLUDED
2 #define NCB_INCLUDED
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #define NCBNAMSZ 16
9 #define MAX_LANA 0xfe
10
11 #define NCBRESET       0x32
12 #define NCBADDNAME     0x30
13 #define NCBADDGRNAME   0x36
14 #define NCBDELNAME     0x31
15 #define NCBSEND        0x14
16 #define NCBRECV        0x15
17 #define NCBHANGUP      0x12
18 #define NCBCANCEL      0x35
19 #define NCBLISTEN      0x11
20 #define NCBCALL        0x10
21 #define NCBASTAT       0x33
22 #define NCBENUM        0x37
23
24 #include "pshpack1.h"
25
26 typedef struct _NCB
27 {
28         UCHAR   ncb_command;
29         UCHAR   ncb_retcode;
30         UCHAR   ncb_lsn;
31         UCHAR   ncb_num;
32         PUCHAR  ncb_buffer;
33         WORD    ncb_length;
34         UCHAR   ncb_callname[NCBNAMSZ];
35         UCHAR   ncb_name[NCBNAMSZ];
36         UCHAR   ncb_rto;
37         UCHAR   ncb_sto;
38         VOID    (*ncb_post)(struct _NCB *);
39         UCHAR   ncb_lana_num;
40         UCHAR   ncb_cmd_cplt;
41         UCHAR   ncb_reserved[10];
42         HANDLE  ncb_event;
43 } NCB, *PNCB;
44
45 typedef struct _ADAPTER_STATUS
46 {
47         UCHAR   adapter_address[6];
48         UCHAR   rev_major;
49         UCHAR   reserved0;
50         UCHAR   adapter_type;
51         UCHAR   rev_minor;
52         WORD    duration;
53         WORD    frmr_recv;
54         WORD    frmr_xmit;
55         WORD    iframe_recv_error;
56         WORD    xmit_aborts;
57         WORD    xmit_success;
58         WORD    recv_success;
59         WORD    iframe_xmit_error;
60         WORD    recv_buffer_unavail;
61         WORD    t1_timeouts;
62         WORD    ti_timeouts;
63         DWORD   reserved1;
64         WORD    free_ncbs;
65         WORD    max_cfg_ncbs;
66         WORD    max_ncbs;
67         WORD    xmit_buf_unavail;
68         WORD    max_dgram_size;
69         WORD    pending_sess;
70         WORD    max_cfg_sess;
71         WORD    max_sess;
72         WORD    max_sess_pktsize;
73         WORD    name_count;
74 } ADAPTER_STATUS, *PADAPTER_STATUS;
75
76 typedef struct _LANA_ENUM
77 {
78         UCHAR length;
79         UCHAR lana[MAX_LANA+1];
80 } LANA_ENUM, *PLANA_ENUM;
81
82 #define NRC_GOODRET 0x00
83 #define NRC_BUFLEN  0x01
84 #define NRC_ILLCMD  0x03
85 #define NRC_CMDTMO  0x05
86 #define NRC_INCOMP  0x06
87 #define NRC_INVADDRESS 0x39
88 #define NRC_PENDING 0xff
89 #define NRC_OPENERROR 0x3f
90
91 #ifdef __cplusplus
92 }
93 #endif
94
95 #endif  /* NCB_INCLUDED */