FILE_REMOTE_PROTOCOL_INFORMATION結構 (ntifs.h)
FILE_REMOTE_PROTOCOL_INFORMATION 結構包含檔案遠端通訊協議資訊。 當 FileRemoteProtocolInformation 作為 fileInformationClass 參數傳遞時,會從 FltQueryInformationFile 傳回這個結構。
語法
typedef struct _FILE_REMOTE_PROTOCOL_INFORMATION {
USHORT StructureVersion;
USHORT StructureSize;
ULONG Protocol;
USHORT ProtocolMajorVersion;
USHORT ProtocolMinorVersion;
USHORT ProtocolRevision;
USHORT Reserved;
ULONG Flags;
struct {
ULONG Reserved[8];
} GenericReserved;
struct {
ULONG Reserved[16];
} ProtocolSpecificReserved;
union {
struct {
struct {
ULONG Capabilities;
} Server;
struct {
ULONG Capabilities;
ULONG ShareFlags;
ULONG CachingFlags;
UCHAR ShareType;
UCHAR Reserved0[3];
ULONG Reserved1;
} Share;
} Smb2;
ULONG Reserved[16];
} ProtocolSpecific;
} FILE_REMOTE_PROTOCOL_INFORMATION, *PFILE_REMOTE_PROTOCOL_INFORMATION;
成員
StructureVersion
這個結構的版本。 如下所示設定此成員。
價值 | 意義 |
---|---|
1 | 通訊是在執行 Windows 7 的電腦之間 |
2 | 通訊是在執行 Windows 8 的電腦之間 |
3 | 通訊是在執行 Windows 8.1 的電腦之間 |
4 | 通訊是在執行 Windows 10 或更新版本的電腦之間 |
StructureSize
這個結構的大小,以位元組為單位。 此成員應設定為 sizeof(FILE_REMOTE_PROTOCOL_INFORMATION)。
Protocol
ntifs.h中定義的其中一個 WNNC_NET_XXX 遠端通訊協定網路類型。
ProtocolMajorVersion
遠端通訊協定的主要數目。
ProtocolMinorVersion
遠端通訊協定的次要數目。
ProtocolRevision
遠端通訊協議的修訂。
Reserved
應該設定為零。 請勿使用此成員。
Flags
遠端通訊協議資訊。 這個成員可以設定為零或多個下列旗標。
價值 | 意義 |
---|---|
REMOTE_PROTOCOL_FLAG_LOOPBACK | 遠端通訊協定使用回送 |
REMOTE_PROTOCOL_FLAG_OFFLINE | 遠端通訊協定使用離線快取 |
REMOTE_PROTOCOL_INFO_FLAG_PERSISTENT_HANDLE | 遠端通訊協定使用持續性句柄。 只有在 structureVersion 為 2 或更新版本時,才支援此旗標。 |
REMOTE_PROTOCOL_INFO_FLAG_PRIVACY | 遠端通訊協定使用隱私權。 只有在 structureVersion 為 2 或更新版本時,才支援此旗標。 |
REMOTE_PROTOCOL_INFO_FLAG_INTEGRITY | 遠端通訊協定使用完整性,以便簽署數據。 只有在 structureVersion 為 2 或更新版本時,才支援此旗標。 |
REMOTE_PROTOCOL_INFO_FLAG_MUTUAL_AUTH | 遠端通訊協定使用 Kerberos 進行相互驗證。 只有在 structureVersion 為 2 或更新版本時,才支援此旗標。 |
GenericReserved
通訊協定泛型信息結構。
GenericReserved.Reserved[8]
應該設定為零。 請勿使用此成員。
ProtocolSpecificReserved
ProtocolSpecificReserved.Reserved[16]
ProtocolSpecific
ProtocolSpecific.Smb2
ProtocolSpecific.Smb2.Server
ProtocolSpecific.Smb2.Server.Capabilities
ProtocolSpecific.Smb2.Share
ProtocolSpecific.Smb2.Share.Capabilities
ProtocolSpecific.Smb2.Share.ShareFlags
ProtocolSpecific.Smb2.Share.CachingFlags
ProtocolSpecific.Smb2.Share.ShareType
ProtocolSpecific.Smb2.Share.Reserved0[3]
ProtocolSpecific.Smb2.Share.Reserved1
ProtocolSpecific.Reserved[16]
要求
要求 | 價值 |
---|---|
標頭 | ntifs.h |