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
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