How to respond to IOCTL_MOUNTDEV_QUERY_UNIQUE_ID?

Hi all!
I am developing a driver which implement a virtual disk. I am trying to notify MountMgr that a new volume arrive when the volume is mounted. MSDN tell me that I can send MountMgr an IOCTL named IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION to compete it.
I do so, and MountMgr send to me some other IOCTLs. MSDN says, the most important IOCTL is IOCTL_MOUNTDEV_QUERY_UNIQUE_ID. My driver can elect to ignore others, but must provide an unique ID as the response of it.
But I find that the input length of this IOCTL is just 4, equal to sizeof(MOUNTDEV_UNIQUE_ID). MSDN says the struct MOUNTDEV_UNIQUE_ID has two member: 
USHORT UniqueIdLength;
UCHAR UniqueId[1];
I think member UniqueId is a variable size string. Length of it should be more than 4. So I write the code below as response:
status = STATUS_BUFFER_OVERFLOW;
Irp->IoStatus.Information = need_len;
The variable need_len is equal to the summarize of the length of my ID string and size of USHORT, that is 2. But MountMgr send this IOCTL with same length buffer again. I don't know how to respond this IOCTL. Should I ignore this length limit and copy my
ID to AssociatedIrp.SystemBuffer directly? I think if I do so, the pool will be corrupted. The system will come into BSOD, isn't it? If I do nothing, I find the system will come into a wired mistake after a while. What should I do?
I hope someone could be kind to help me. Thank you!
Best regards!
whiteclouds

When you have one of these calls, you should return STATUS_BUFFER_TOO_SMALL since that is the error indicating that the buffer needs to grow.  For device driver questions, you should really be asking this on the WDK forum
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=wdk
Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com
1. STATUS_BUFFER_TOO_SMALL can't work. I try to set status as it and return, system come into BSOD, windbg tell me the pool was corrupted.
2. Sorry, before I post my message, I hadn't find here isn't the correct forum. I will post my message at WDK forum again.

Similar Messages

  • Why doesn't siri know how to change the time of a reminder? When asked, "Do you want to confirm or cancel your reminder?" Reply, "Can I change the time to a half hour later?" Siri doesn't know how to respond.

    Why doesn't siri know how to change the time of a reminder? When asked, "Do you want to confirm or cancel your reminder?" Reply, "Can I change the time to a half hour later?" Siri doesn't know how to respond.

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • How to respond on my iPhone when it disabled?

    How to respond on my iPhone when it disabled?

    You don't.  It's disabled.  You need to re-enable it.  What have you done to re-enable it?

  • What's a loss how to respond when iPad?

    What's a loss how to respond when iPad?

    I'm afraid your question makes no sense. perhaps if you rephrase

  • How to respond to itunes on a disabled connect to itunesphone

    how to respond to itunes on a disabled connect to itunesphone

    If your phone is disabled then you will have to connect it to your computer's iTunes : Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled.

  • HT4759 attempting to download clo on app to ipad. Step 2 of download process asks for a storage space. Not sure how to respond.

    attempting to download cloud on app to ipad. Step 2 of download process asks for a storage space. Not sure how to respond.

    HHey GB, thanks, this was of great help and should, if you are correct, solve the problem quickly.
    if I am unable to buy 'Hanna' then I am better to use the money (and that for the apparently totally useless iCloud storage!) on my much-needed medications (I am on Disability) OxyContin and Heroin Hydrochloride tablets From my UK pharmacy. Oh, and Gador Alplax bars from Argentina (we only get Xanax brand here and it is the most expensive in the world, and can only be bought in tiny 0.5mg dose meaning I need twelve tablets daily rather than only THREE of the 2mg Alplax 'bars').
    my entertainment via my new iPad is my only real way of forgetting about the pain and anxiety problems I suffer.
    THANK YOU SO MUCH FOR ANSWERING SO QUICKLY!
    Michael in Scotland
    gail from maine wrote:
    Hi Michael,
    You can contact iTunes Support about the movie issue, and Apple Support about the iCloud Storage refund:
    iTunes Support WorldWide
    Apple Support Numbers WorldWide
    Cheers and best of luck!
    GB

  • I'm clueless how to respond

    When I get invited to a chat or I invite someone to a chat. The camera comes up it gives me the accept/decline option. I click accept the outlining changes but then it says that the chat cannot go because I didn't respond. I don't understand how I'm not responding especially because sometimes it's me sending the invite. HELP!

    Hi Rdotson:
    Welcome to Apple Discussions!
    Have you opened up the ports in your router?
    This may help:
    http://www.ralphjohnsuk.dsl.pipex.com/page3.html
    or
    http://www.mvldesign.com/videoconferencetutorial.html

  • How to respond to physical block corruption??

    Hi, all.
    As far as I know, there are two types of block corruption.
    1. logical block corruption
    2. physical block corruption
    In case of logical block corruption, there are a few method of how to take care of it.
    such as BMR with rman, media recovery, and dbms package.
    In case of physical block corruption, how can I respond to this type of errors?
    Does physical block corruption of a disk mean disk failure??
    If so, I have to replace the disk? Or, is there any other way to solve
    this type of errors?
    In addition, how can I know that the block corruption is caused by logical problems
    or physical problems??
    Thanks and Regards.

    > In case of physical block corruption, how can I respond to this type of
    errors?
    Round around in circles, screaming at the top of your voice "we're all going to die!".
    Hey, why that funny looks? It works. And it scares the stuffings out of management and colleagues... ;-)
    > Does physical block corruption of a disk mean disk failure??
    If by physical corruption you mean that reading a data block results in I/O errors and a corrupt/incomplete read buffer, then yes. The "disk" is failing - or more correctly, the I/O h/w is failing. It may not be the disk itself. It could be a problem with the HBA, a controller card, etc.
    In exceptional cases it may not even be a h/w issue. It could be a s/w induced error. I once got physical I/O errors reported by Oracle. The problem was traced to an incompatibility between the ASMlib kernel module and EMC Powerpath. The SAN disks & h/w were fine.
    > If so, I have to replace the disk? Or, is there any other way to solve
    this type of errors?
    There should be some kind of diagnostics you can run on the disks to determine if they are failing. Simply replacing a disk because there seems to be a physical corruption problem may not solve the problem itself.
    You need to identify the actual problem. Which means looking at all Oracle traces/dumps in this regard, looking at the kernel logs, manually dumping blocks to see the results, using whatever I/O & disk diagnostic tools available, etc.
    > In addition, how can I know that the block corruption is caused by logical
    problems or physical problems??
    That depends on what you define as logical and physical corruption. The latter means to me that I cannot get the data off the disk without some kind of I/O error. Logical means that the data can be read just fine, but is garbage. Which could simply mean GIGO without implying any kind of underlaying h/w failure.

  • How to respond to install notification?

    Hello.
    Can anyone tell me how a server should respond to install notification from a MIDlet? My server does nothing and my Nokia 3650 complains.....
    Thanks

    Hi, thanks for the reply.
    The thing is, I know it's not a required attribute but I've got a feeling it could be handy - I like the idea of keeping proper tabs on what's going on! The delete notify one appeals to me for the same reason.
    Imagine getting two install notifications from a particular user without getting a delete notification in between...does that mean they have somehow managed to install the app on more than one phone? Because when you get down to it, it's not overly difficult for someone to get a MIDlet off one phone and onto another. Hmm..having said that, I just realised that they could fiddle with, or remove, the install notification URL before installing the app on another phone anyway.
    I installed a program on my 3650 the other day, one for the Symbian OS. To download the app I had to enter the phone's serial number. Wish you could use that sort of check in a Java app.

  • Get warning before burning-how to respond?

    When I have a video all formatted in iDVD and ready to burn, a notice appears on the screen that says: "There were warnings during the project validation. It is recommended that you fix these problems before burning the project". But I had seen no earlier warnings, and in fact the new DVD comes out OK. How can I see these "warnings" & perhaps respond to them?

    I am having the same problem as above, on checking my project find that some frames are freezing, any help would be gratefully received

  • How to respond iTunes when my iPhone is disabled?

    Hi, my iPhone 5s with serial no.DNPN30GLFRC 4was disabled because i forgot my passcode. I was relying to 3 finger prints that I was saving before. I didn't know that passcode is required when the phone restarted. So I follow every single steps to recover my iPhone using i tunes.
    Suddenly an iTunes pop up a message "that I must respond to iTunes on my phone, so that the computer could have access to the phone".
    HOW COULD I RESPOND ON MY PHONE WHEN I WAS DISABLED ALREADY?
    IS THERE ANY BUTTON TO BE PRESS AS CODE COMBINATION THAT STANDS AS MY RESPOND TO ITUNES?

    Simple, you don't.  Until you restore it, or get it fixed if it has a hardware issue, you cannot do much of anything at all with it.  I'm assuming by "disabled" you mean either completely unresponsive, or unable to power on?

  • How to respond to mouse over link inside textarea component?

    I want to respond to the content of a link inside htmlText
    propery of textarea, when the user move the mouse over the link,
    without clicking on it. is there a simple way to do so with flex?

    I found a solution to this.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=582&threadid =1325639&enterthread=y
    What you do is use
    itemRollOver and the event.itemRenderer.data.name together.
    I used it so when I roll over an item in the dataGrid it
    changes the text area I have in my application with the description
    of the current rolled over item. When I mouse over another entry
    then the description changes to that description and on and on.
    Here is the full code I used.
    itemRollOver="NAME_OF_TEXT_AREA.text =
    event.itemRenderer.data.description"
    you would change the description to whatever the field is you
    want, such as name, author, temp, books or whatever the data is.
    I am actually bringing in data on videos from a database. XML
    is created from the database using the XML plugin from Dreamweaver
    Developer ToolBox. A PHP file is used to output the desired table
    information then it is brought into Flex 2 application and the data
    is propigated into the Data Grid I have setup. The Text Area is
    updated with the description of the video both when one is selected
    but also, now, when any of the items in the list are moused over,
    or rolled over.
    It works great. You can easily change this to work for your
    app or at least give you a direction to go if it isn't exactly what
    you need.
    I have been trying to get this to work for a couple days now,
    just found my solution and wanted to come post to let others know
    about it.

  • How to Respond to Error Message..."Close ElementsAutoAnalyzer.exe"

    I just installed Photoshop Elements 11 and Premiere Elements 11 on my computer.   After installation I checked for updates.   The first update was for Elements Camera Raw but shortly after it started I received an error messaage which read, "Close ElementsAutoAnalyzer.exe".   I closed Elements 11 application and clicked on "Continue" in the remaining window.   The same error message appeared after a few seconds.   There weren't any other open applications so I didn't know how else to close the Auto Analyzer.   Can anyone offer advice?

    Go to the organizer preferences>media analysis and turn it off there. If that fails you can do it in task manager (win) or applications>utilities>activity monitor (mac).

  • How to respond to a message automatically upon receiving a message.

    Hello,
    Is there a way I can configure a CAN object where upon receiving a certain message the application will send a message automatically like a periodic message. One thing I can do to solve this problem is I can monitor all the frames comming from the port and upon receiving a certain message I can write the case structure to write a message. The problem I have is I want to do this in a seperate loop from my main application. In my main application I will be monitoring all the messages and doing other stuff. The response to the message is very critical thats why I want to do that in a seperate loop. If I do this response in a seperate loop then in my main loop I am loosing some of the messages as i am reading them in another loop. Please let me know what is the best way to solve this problem.  Thanks in advance.
    Mudda.

    Hi Mudda,
    The Link you found describes how to use the remote Frame Option to run a periodic receiving object. This is for sure nothing you can use with your situation.
    CAN known this remote frames to trigger devices which are able to understand a remote Frame as a way to trigger a certain answer frame. A remote frame does not contain any data and has the same Id as the frame which is requested.
    In your case if there is only one particular ID on the BUS  and you need to answer with the same ID twice in different rates? You could use two different ports for two objects with the same ID connected to the same BUS?
    In order to receive a message with special content within the data bytes, you could configure a port to filter all incoming message using the ID and the data bytes as well. See the Filter example coming with the driver for more information.
    DirkW

  • How to respond to an OTA response???

    Hi
    I�m writing a server app using .net. I would like to know what responses an AMS is expecting from the server after it has sent its OTA response? (e.g a POST with 900 Success as the content).
    Thanks

    For those interested,
    respond with "200 OK" as the content

Maybe you are looking for