[DllImport("kernel32.dll")]
static extern bool SetFileAttributes(string lpFileName, uint dwFileAttributes);
[DllImport("kernel32.dll")]
static extern bool SetFileAttributes(
string lpFileName,
[MarshalAs(UnmanagedType.U4)] FileAttributes dwFileAttributes);
None.
This method works for Alternate Data Streams.
Please add some!
Using the "alternative" method above you can make calls like so:
SetFileAttributes("pathname", FileAttributes.System | FileAttributes.Hidden | FileAttributes.Archive);
Do you know one? Please contribute it!