FILE_NOTIFY_INFORMATION 我在VC中找到 不知道Delphi有没有?
解决方案 »
- 数组与指针的问题!
- 多语言版本
- 用哪个控件???
- 關於sql語句的參數問題
- 救命呀!!在繁体和 En 98 下用Ado 连接操作 出现“系统无法支持选取的排序法则”,请问应该怎样解决?
- 如果我用一个通用的基础资料输入FROM重新写构造 给他一个DATASET参数为什么不行呢
- 大侠救命!!Delphi的TQuery控件从SQL Sever取数据时无法超过255个字符,怎么办??
- 重新编译CLX,怎么做?
- delphi 打开IE后 怎么取得页面里文本框的值
- 什么情况下才用到含动态表名的存储过程?
- 一个长循环,在我关闭程序的时候发现这个循环的进程还在运行,只能在任务管理器里杀掉,请问如何解决?
- 求一函数,验证一三位数,如果该三位数包涵某数字,比如2则该涵数返回0,否则返回1
DWORD NextEntryOffset;
DWORD Action;
DWORD FileNameLength;
WCHAR FileName[1];
} FILE_NOTIFY_INFORMATION;
MembersNextEntryOffsetSpecifies the number of bytes that must be skipped to get to the next record. A value of zero indicates that this is the last record.ActionSpecifies the type of change that occurred.Value Meaning
FILE_ACTION_ADDED The file was added to the directory.
FILE_ACTION_REMOVED The file was removed from the directory.
FILE_ACTION_MODIFIED The file was modified. This can be a change in the time stamp or attributes.
FILE_ACTION_RENAMED_OLD_NAME The file was renamed and this is the old name.
FILE_ACTION_RENAMED_NEW_NAME The file was renamed and this is the new name.
FileNameLengthSpecifies the length, in bytes, of the filename portion of the record. Note that this length does not include the terminating null character.FileNameThis is a variable-length field that contains the filename relative to the directory handle. The filename is in the Unicode character format and is not null-terminated.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/file_notify_information_str.asp
PFileNotifyInformation = ^FILE_NOTIFY_INFORMATION;
FILE_NOTIFY_INFORMATION = Record
NextEntryOffset: DWORD;
Action: DWORD;
FileNameLength: DWORD;
FileName: Array[0..0] Of WideChar;
End;http://www.koders.com/delphi/fid103E3E41C626483F970803CEC99BE35741DA2019.aspx
为何是[0..0],不明白?