能力值:
( LV2,RANK:10 )
|
-
-
2 楼
sizeof(FILE_ID_BOTH_DIR_INFORMATION) + FileNameLen * sizeof(WCHAR) - sizeof(WCHAR)
我觉得是这样, FileNameLen 是宽字符的长度
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
不是的,filenamelen就是字节数,不是字符数
|
能力值:
( LV4,RANK:50 )
|
-
-
4 楼
typedef struct _FILE_ID_BOTH_DIR_INFORMATION { ULONG NextEntryOffset; ULONG FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; ULONG FileAttributes; ULONG FileNameLength; ULONG EaSize; CCHAR ShortNameLength; WCHAR ShortName[12]; LARGE_INTEGER FileId; WCHAR FileName[1]; } FILE_ID_BOTH_DIR_INFORMATION, *PFILE_ID_BOTH_DIR_INFORMATION;
FIELD_OFFSET(FILE_ID_BOTH_DIR_INFORMATION, FileName) + FileNameLength * sizeof(WCHAR)
|
|
|