How to know if the drive is fixed?

Hi,

I am porting our Windows Source for Windows CE 8 using Toradex Windows Embedded Compact 2013 SDK.

Is there any way through which I can get to know if the drive is fixed on the windows CE target environment.I am not able to find any API calls which can help me to find the type of drive.I only want to know if the storage drive is fixed or not.

Thanks for your help in advance.

Regards, Kamaldeep

Unlike Desktop Windows, Windows CE does not have the concept of drive letters. However, we are talking about an embedded system, where you should typically know your configuration.

Therefore you can write a simple wrapper like

if (path starts with "/flahsdisk")
  drive = fixed
else
  drive = removable or RAM