ow to Open physical disk in Windows Vista

Hi all,

I am using Createfile function to open the physical disk 0 as MSDN suggest("\\.\PHYSICALDRIVE0 ").

This is working fine for me on Windows 2000, XP . But If i use it on Windows Vista RC1 Then it returns Error 5 (Access denied) even i am logged in as Administrator.

Can some one help me out about it.

Thanks

 

davinder101Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sunnycoderConnect With a Mentor Commented:
Hi davinder101,

Having logged in as admin wont be sufficient ... right click your exe and select run as administrator.

Cheers!
sunnycoder
0
 
YoungBonziCommented:
That's right, and to avoid having to do that everytime: right click -> properties -> compatibility -> check "Run this program as administrator"
0
 
davinder101Author Commented:
Thanks for the help,

Is it every time requirement, to use my exe?
Can i do this by programming ? i mean can i make the changes in setting .


Thanks
0
 
YoungBonziConnect With a Mentor Commented:
I don't think so, that would defeat the purpose of the security feature.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.