How to manage the power on USB port

Joined
Jul 4, 2007
Messages
1
Reaction score
0
Hi to everybody,
I need to develop a software to manage the power state of an USB mass storage connected to our device with Windows CE on board (the device is an EuroTech PC\104 - CPU1432).

I'm using the DevicePowerNotify() function in this way.

DWORD Ret;
Ret = DevicePowerNotify(_T("DSK4:"), D0, POWER_NAME);

where DSK4: is mass storage device, but the function returns 2 --> ERROR_FILE_NOT_FOUND.
I have the same problem using DSK1: or COM1: (for instance)

Does someone know this problem?
Do I need some other function before calling DevicePowerNotify()? For instance, AdvertiseInterface()?
Waiting for your answer, I thank you in advance.

Best regards
Davide
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top