Displaying 1 result from an estimated 1 matches for "le_attribute_hidden".
Did you mean:
file_attribute_hidden
2003 Jan 06
0
Desktop.ini (part) solution
...lude <windows.h>
int main(int argc, char* argv[])
{
HANDLE f;
f =
CreateFile("H:\\test.x",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FI
LE_ATTRIBUTE_NORMAL,NULL);
CloseHandle(f);
f =
CreateFile("H:\\test.x",GENERIC_WRITE,FILE_SHARE_WRITE,NULL,CREATE_ALWAYS,FI
LE_ATTRIBUTE_HIDDEN,NULL);
CloseHandle(f);
return 0;
}
Now in windows, the first call creates the file 'test.x' with NORMAL
attributes. Then, the second call 'truncates' the file, but with HIDDEN
attributes. If you run this on C: you will find test.x has HIDDEN attributes
after the second call. Thi...