Thank you for your reply, ArkM.
Here is my CreateFile,
tmpHandle = CreateFile( szDriveName,
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_SYSTEM,
NULL);
I have tried no-buffering but...
Hi,
I'm porting a win32 program from XP to Vista. The program is doing read and write with hard disk and is sector based. In the very beginning the program does,
Read and write to sector 0, then
Write to very end of the hard disk
Steps are very traditional,
CreateFile...
Thank you for your reply, linney.
I did some research and found it's not possible to switch back to TrustedInstaller. Once you change owner from TrustedInstaller to administrator or someone else, you cannot change it back.
The reason, TrustedInstaller is not a user account actually. It's a...
Thank you for the info, s0121.
In addition to TAKEOWN, ICACLS command modifies read/write permission. So a batch file containing TAKEOWN and ICACLS will do the job on a whole hard disk automatically.
I got another question. After I changed owner on some files and did copy/rename/delete..., how...
Hi,
I'm a new comer here. I got a problem on permission of file copy.
I have logged into real admin (enabled from User Group), not filtered admin (built-in admin during Vista install). Under the admin, I'm trying to copy out files from C:\Windows folder then copy them back. This is a system...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.