IOCTL in ntddisk.h

Posted: 09-02-2003, 08:48 PM
Hello,
Few days back I was working on a disk driver on winXP and I came across a
strange thing.

For my driver system was generating an IOCtl with fucntion code 0x0017 (I
found out this function code using macro CTL_CODE as IOCTL values are
derived using CTL_CODE). But when I looked into the ntddisk.h for XP it
didnt have any such IOCTL for this value. I was totally confused why system
is generating such IOCTL. After more investigation I came to know for WIN2K
version DDK has a IOCTL "IOCTL_DISK_GET_LENGTH_INFO" for this function code.
After adding this IOCTL explicitly in the header file my problem was solved.
Can anyone comment why is it so ? Was it the case only with my installation
or with generic installation ? I even noticed DDK help showing help on this
IOCTL value.


Regards,
Rushikesh.


--
----------------------------------------
Rushikesh Patil.
Persistent Systems Pvt. Ltd.
cell: +(91)98226-39056
http://www.rushikeshpatil.8m.com
----------------------------------------


Reply With Quote

Responses to "IOCTL in ntddisk.h"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IOCtl Problem. Rushikesh Patil Windows XP Device Drivers 0 08-31-2003 10:16 PM


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90