about drive creation and accessing that drive through driver programming RRS feed

  • Question

  • I have written a driver program that creates a disk(V:) with the help of the function IoCreateDevice() in which i have mentioned device type as FILE_DEVICE_DISK.
    This creates a disk like structure which can be seen in MyComputer , but when I try to access it, it gives me a warning like

    V:\ refers to a location that is unavailable. It could be on a hard drive on this computer or on a network. check to make sure that disk is properly inserted or that you are connected to internet or your network and then try again. If it still cannot be located, the information might have been moved to a different location.

    properties for this disk show that there is no memory allocated for it and filesystem as RAW.
    Can anybody tell me how to write a driver program to create a disk that is accessible which can be used to read and write files.
    Tuesday, July 21, 2009 8:00 AM


  • Hello:

    You've actually posted this question to the Microsoft adCenter development forum, and unfortunately this is probably not the correct forum for your question.

    I did take a quick look on MSDN for FILE_DEVICE_DISK though and came up with this topic that might be of some assistance.


    If this is not the topic you need, I would suggest doing a search from here http://msdn.microsoft.com/en-us/default.aspx to find the appropriate forum or documentation.

    Best of luck
    Bill Bledsoe
    Operations Program Manager
    SMB-A API, Tool Provider, Reseller
    Tuesday, July 21, 2009 9:53 PM