Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All.
I have usb device, it supports mass storage(like a usb hard drive). Device has 2 luns(2 disks(not removable)). Each disk can be divided into multiple partitions and logical disks.
I want enable or disable second disk at the request. Without writing a driver - in user mode.
Anybody tried SetupDiChangeState for disable/enable disk(some device..)?
Can someone help me with this? Everything happens in Windows XP(7).
Thank you in advance.
Posted
Comments
Martin Arapovic 4-Feb-12 17:08pm    
Hi! And this needs to be written in what language?!

1 solution

Hi,

Here [^]you have this written in C#.
For help about used win api go to www.pinvoke.net/[^] or google... ;)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900