如何检查文件是否具有备用数据流?
How to check if a file has Alternate Data Streams?
Delphi 有没有办法检查文件是否有备用数据流?
看看 Win32 API FindFirstStreamW()
and FindNextStreamW()
函数:
Enumerates the first stream with a ::$DATA
stream type in the specified file or directory.
Continues a stream search started by a previous call to the FindFirstStreamW
function.
但是,文件或目录可能有除 ::$DATA
之外的其他流类型,这些流类型在 Win32 API 中不可枚举,它们是 NTFS 本身的内部类型。
有关详细信息,请参阅 MSDN。
要枚举非 $DATA
流,您必须直接读取文件系统,例如在 CodeProject 上使用 BackupRead()
and BackupSeek()
. See Enumerating Alternate Data Streams 了解详细信息。
Delphi 有没有办法检查文件是否有备用数据流?
看看 Win32 API FindFirstStreamW()
and FindNextStreamW()
函数:
Enumerates the first stream with a
::$DATA
stream type in the specified file or directory.
Continues a stream search started by a previous call to the
FindFirstStreamW
function.
但是,文件或目录可能有除 ::$DATA
之外的其他流类型,这些流类型在 Win32 API 中不可枚举,它们是 NTFS 本身的内部类型。
有关详细信息,请参阅 MSDN。
要枚举非 $DATA
流,您必须直接读取文件系统,例如在 CodeProject 上使用 BackupRead()
and BackupSeek()
. See Enumerating Alternate Data Streams 了解详细信息。