CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vipink85

Search: Search took 0.03 seconds.

  1. Replies
    22
    Views
    30,457

    Re: Force stop/kill/eject usb mass storage device

    hi Elman,

    I got some ideas(but it may not work for all processes open).

    1. Get the command line and process execution path of all the processes using win32_process. We will be having the drive...
  2. Replies
    22
    Views
    30,457

    Re: Force stop/kill/eject usb mass storage device

    Thanks Karpatuz,

    I executed the code but it does not seem to work. The USB is rejected if no process are running.

    If you open a txt file in notepad from the USB then this will code fail. But I...
  3. Replies
    22
    Views
    30,457

    Re: Force stop/kill/eject usb mass storage device

    hi Elman,

    Did u get any solution for this?
    I am also having same problem. I have not got any solution but here is alink which can be of your help.
    ...
  4. Relating Win32_PnPEntity and Win32_DiskDrive

    Presenlty, I have a query to detect USB device.
    ----------------------------
    SELECT * FROM __InstanceOperationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_PnPEntity' and...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured