typedef unsigned char UCHAR; // 8 unsigned bits
typedef unsigned short USHORT; // 16 unsigned bits
typedef unsigned long ULONG; // 32 unsigned bitstypedef struct {
ULONG LowPart;
LONG HighPart;
} LARGE_INTEGER; // 64 bits of datatypedef struct {
UCHAR Protocol[4]; // Contains 0xFF,'SMB'
UCHAR Command; // Command code
union {
struct {
UCHAR ErrorClass; // Error class
UCHAR Reserved; // Reserved for future use
USHORT Error; // Error code
} DosError;
ULONG Status; // 32-bit error code
} Status;
UCHAR Flags; // Flags
USHORT Flags2; // More flags
union {
USHORT Pad[6]; // Ensure section is 12 bytes long
struct {
USHORT PidHigh; // High part of PID
UCHAR SecuritySignature[8]; // reserved for security
} Extra;
};
USHORT Tid; // Tree identifier
USHORT Pid; // Caller's process id
USHORT Uid; // Unauthenticated user id
USHORT Mid; // multiplex id
UCHAR WordCount; // Count of parameter words
USHORT ParameterWords[ WordCount ]; // The parameter words
USHORT ByteCount; // Count of bytes
UCHAR Buffer[ ByteCount ]; // The bytes
} SMB_HEADER;
typedef unsigned short USHORT; // 16 unsigned bits
typedef unsigned long ULONG; // 32 unsigned bitstypedef struct {
ULONG LowPart;
LONG HighPart;
} LARGE_INTEGER; // 64 bits of datatypedef struct {
UCHAR Protocol[4]; // Contains 0xFF,'SMB'
UCHAR Command; // Command code
union {
struct {
UCHAR ErrorClass; // Error class
UCHAR Reserved; // Reserved for future use
USHORT Error; // Error code
} DosError;
ULONG Status; // 32-bit error code
} Status;
UCHAR Flags; // Flags
USHORT Flags2; // More flags
union {
USHORT Pad[6]; // Ensure section is 12 bytes long
struct {
USHORT PidHigh; // High part of PID
UCHAR SecuritySignature[8]; // reserved for security
} Extra;
};
USHORT Tid; // Tree identifier
USHORT Pid; // Caller's process id
USHORT Uid; // Unauthenticated user id
USHORT Mid; // multiplex id
UCHAR WordCount; // Count of parameter words
USHORT ParameterWords[ WordCount ]; // The parameter words
USHORT ByteCount; // Count of bytes
UCHAR Buffer[ ByteCount ]; // The bytes
} SMB_HEADER;
解决方案 »
- missing Connection or ConnectionString,请教了
- 为什么我写的ftp客户端无法连上FTP服务器,但是用cuteftp没问题?
- mapx求助
- 如何根据窗口句柄得到应用程序的绝对路径?
- 想实现打印报表是一张表格结构,有什么办法或控件?
- delphi6中的报表如何实现??
- 我怎样判断ADOQUERY关闭了?
- 请教——还是字符串与类的问题
- 问高手们,网页更新自动通知系统!!
- strpas(s)函数是做什么用的, 谢谢
- 请教一个对高手来说不难的问题,控件编程高手请进!(系统不能给超过100分,问题解决后另加……)
- 问题是:将DBF文件用OpenDataSource语句导入SQL,出现日期错!!!!
type [structname] = record
[var1]: Datatype;
[var2]: Datatype;
...
end;共用体:
type [unionname] = record
case Integer of
0:
[var1]: Datatype;
[var2]: Datatype;
...
1;
[var1]: Datatype;
[var2]: Datatype;
[var3]: Datatype;
...
2:
...
end;//说明:[]的内容可自已定,Datatype表示数据类型,可为用户自定义类型,比如结构体!!
//注意,共用体中每种Case所占用的字节总数是一样的!!
UCHAR = byte; // 8 unsigned bits
USHORT = Word; // 16 unsigned bits
ULONG = DWord; // 32 unsigned bitsLARGE_INTEGER = record
LowPart: ULONG;
HighPart : LONGInt;
end; // 64 bits of dataSMB_HEADER = record
Protocol: array [0..3] of UCHAR; // Contains 0xFF,'SMB'
Command: UCHAR; // Command code
case Integer of
0: (DosError : record
ErrorClass, // Error class
Reserved: UCHAR; // Reserved for future use
Error: USHORT; // Error code
end);
1: (Status: ULONG); // 32-bit error code
Flags: UCHAR; // Flags
Flags2: USHORT; // More flags
case Integer of
0: ( Pad : Array of [0..5] of USHORT;); // Ensure section is 12 bytes long
1: ( Extra : Record
PidHigh: USHORT; // High part of PID
SecuritySignature: array [0..7] of UCHAR; // reserved for security
end);
Tid, // Tree identifier
Pid : USHORT; // Caller's process id
Uid, // Unauthenticated user id
Mid : USHORT; // multiplex id
WordCount : UCHAR; // Count of parameter words
USHORT ParameterWords[ WordCount ]; // The parameter words
ByteCount : USHORT; // Count of bytes
UCHAR Buffer[ ByteCount ]; // The bytes
end;