|
|
1.1 root 1: /*++
2:
3: Copyright (c) 1989-1993 Microsoft Corporation
4:
5: Module Name:
6:
7: sthdrs.h
8:
9: Abstract:
10:
11: This module defines private structure definitions describing the layout
12: of the NT Sample Transport frames.
13:
14: Revision History:
15:
16: --*/
17:
18: #ifndef _STHDRS_
19: #define _STHDRS_
20:
21: //
22: // Pack these headers, as they are sent fully packed on the network.
23: //
24:
25: #ifdef PACKING
26:
27: #ifdef __STDC__
28: #pragma Off(Align_members)
29: #else
30: #pragma pack(1)
31: #endif // def __STDC__
32:
33: #endif // def PACKING
34:
35: #define ST_SIGNATURE 0x37
36:
37: #define ST_CMD_CONNECT 'C'
38: #define ST_CMD_DISCONNECT 'D'
39: #define ST_CMD_INFORMATION 'I'
40: #define ST_CMD_DATAGRAM 'G'
41:
42: #define ST_FLAGS_LAST 0x0001 // for information frames
43: #define ST_FLAGS_BROADCAST 0x0002 // for datagrams
44:
45: typedef struct _ST_HEADER {
46: UCHAR Signature; // set to ST_SIGNATURE
47: UCHAR Command; // command byte
48: UCHAR Flags; // packet flags
49: UCHAR Reserved; // unused
50: UCHAR Destination[16]; // destination Netbios address
51: UCHAR Source[16]; // source Netbios address
52: } ST_HEADER, *PST_HEADER;
53:
54:
55: //
56: // Resume previous structure packing method.
57: //
58:
59: #ifdef PACKING
60:
61: #ifdef __STDC__
62: #pragma Pop(Align_members)
63: #else
64: #pragma pack()
65: #endif // def __STDC__
66:
67: #endif // def PACKING
68:
69: #endif // def _STHDRS_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.