Windows 8 CreateFile error

Sorry for particularly not related to pure kernel mode Question.

I built an app using vs2012. This was working when we had the build using
Win7 ddk env.

The error is Access Denied from CreateFile. When testing the app on Win 8
RC.

Not sure how to launch command window with Administrative priv. Though the
user account is Admin.

It is boot drive.

Thanks

-pro

GetDriveInformation: DeviceName = Hitachi HTS725032A9A364 (SCSI)

SCSI\DiskHitachi__HTS725032A9A364PC3O

SCSI\DiskHitachi__HTS725032A9A364

SCSI\DiskHitachi_

SCSI\Hitachi__HTS725032A9A364P

Hitachi__HTS725032A9A364P

GenDisk

InstanceId: SCSI\DISK&VEN_HITACHI&PROD_HTS725032A9A364\4&13D3C0EF&0&000000

DeviceId: SCSI\DISK&VEN_HITACHI&PROD_HTS725032A9A364

INFO: Interface:
\?\scsi#disk&ven_hitachi&prod_hts725032a9a364#4&13d3c0ef&0&000

000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}

ERROR: OpenDiskDevice => CreateFile() failed !!! error = 0x0

ERROR: Could not get open device #d.

ERROR: OpenSystemDrive => CreateFile () for C: failed !!! error = 0x5

Drive Info: DriveNum = 4294967295, IsBoot: Yes

ERROR: Unable to obtain [Hitachi HTS725032A9A364] disk device information
!!!

G:\addfilter\Win8Debug\x64>

What file are you opening? The volume? You can elevate by creating a manifest, or you hold down shift + enter in the search results or right click and choose run as admin.

d

debt from my phone


From: Prokash Sinha
Sent: 6/28/2012 11:54 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Windows 8 CreateFile error

Sorry for particularly not related to pure kernel mode Question?

I built an app using vs2012. This was working when we had the build using Win7 ddk env.

The error is Access Denied from CreateFile. When testing the app on Win 8 RC.

Not sure how to launch command window with Administrative priv. Though the user account is Admin.

It is boot drive?

Thanks
-pro

GetDriveInformation: DeviceName = Hitachi HTS725032A9A364 (SCSI)
SCSI\DiskHitachi__HTS725032A9A364PC3O
SCSI\DiskHitachi__HTS725032A9A364
SCSI\DiskHitachi_
SCSI\Hitachi__HTS725032A9A364P
Hitachi__HTS725032A9A364P
GenDisk

InstanceId: SCSI\DISK&VEN_HITACHI&PROD_HTS725032A9A364\4&13D3C0EF&0&000000
DeviceId: SCSI\DISK&VEN_HITACHI&PROD_HTS725032A9A364
INFO: Interface: \?\scsi#disk&ven_hitachi&prod_hts725032a9a364#4&13d3c0ef&0&000
000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
ERROR: OpenDiskDevice => CreateFile() failed !!! error = 0x0
ERROR: Could not get open device #d.
ERROR: OpenSystemDrive => CreateFile () for C: failed !!! error = 0x5

Drive Info: DriveNum = 4294967295, IsBoot: Yes
ERROR: Unable to obtain [Hitachi HTS725032A9A364] disk device information !!!

G:\addfilter\Win8Debug\x64>


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer