Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: opening volume handle in kernel mode

Reply
Thread Tools Display Modes

Re: opening volume handle in kernel mode

 
 
Olof Lagerkvist
Guest
Posts: n/a

 
      12-15-2009
shakti wrote:
> Hi,
>
> I'm trying to get the device object pointer for a volume in a driver
> (kernel mode) by using IoGetDeviceObjectPointer.
>
> If I use "/PhysicalDrive0", the call succeeds. But if i use "/Device/
> Harddisk0" or "/Device/HarddiskVolume1" the call fails.
>
> Actually I wanted to get a way to send IOCTL_PASS_THROUGH to a
> specified drive, for eg. C:, which I can do easily from user mode by
> opening a handle to the drive using CreateFile().
>
> Can somebody please explain, why is it happening.



You should use backslash '\', not forward slash '/' in kernel object paths.

--
Olof Lagerkvist
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No display coming out of sleep mode calvnhobbes Windows Vista Hardware 15 09-19-2009 08:01 AM
Unsigned Kernel Mode print drivers. jereviscious Windows Vista Hardware 5 07-23-2007 02:15 PM
"can't Open kernel mode driver service" error please help! Adam4x4x Windows Vista Hardware 3 04-19-2007 12:42 PM
MS-DOS program starts only in full screen mode from command line Juergen Gau Windows Vista Performance 0 08-29-2006 03:51 PM
ActiveSync 4.1, Calendar and "Processing" Dale Reeck ActiveSync 10 12-20-2005 01:44 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59