Tom's Hardware > Forum > Windows XP > Device Driver > IoCreateDevice for creating Device

IoCreateDevice for creating Device

Forum Windows XP : Device Driver - IoCreateDevice for creating Device

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Hi,

I want to create 3 different types of Device. For that I have used "IoCreateDevice" function and for changing device characteristics I did the as following

1) For Fixed drive type

IoCreateDevice(
DriverObject,
sizeof(DEVICE_EXTENSION),
&uniDeviceName,
FILE_DEVICE_DISK ,
(FILE_DEVICE_SECURE_OPEN),
FALSE, // This isn't an exclusive device
&functionDeviceObject
);

2) Removable drive type

IoCreateDevice(
DriverObject,
sizeof(DEVICE_EXTENSION),
&uniDeviceName,
FILE_DEVICE_DISK ,
FILE_REMOVABLE_MEDIA,
FALSE, // This isn't an exclusive device
&functionDeviceObject
);

3) Ram drive type: There is not any define value as "FILE_REMOVABLE_MEDIA" for RAM Drive type. So how can I set this value.

Could anybody tell me what value should I use at device characteristics field for creating a device as RAM Drive type?

Thanks in advance,

Imran

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Device Driver > IoCreateDevice for creating Device
Go to:

There are 1155 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them
  • 01:00 vianescute won the Freshman badge
  • 01:00 meywd won the Freshman badge
  • 01:00 nayega won the Freshman badge
  • 01:00 gpfear won the Freshman badge
  • 01:00 Conrad925 won the Freshman badge
  • 01:00 skythra won the Freshman badge
  • 01:00 Ckaz won the Freshman badge
  • 01:00 james59 won the Uniformed badge
  • 01:00 snarl won the Uniformed badge
  • 01:00 patlabor44 won the Uniformed badge