Any Windows devs out there with USB experience?
Hi,
We are writing file to USB datapens but find that the users do not power them down and so dismount them before removing the pen. This sometimes results in lost data. Does anyone know how to force the powerdown/dismount via an application?
Cheers
We are writing file to USB datapens but find that the users do not power them down and so dismount them before removing the pen. This sometimes results in lost data. Does anyone know how to force the powerdown/dismount via an application?
Cheers
You want to basically flush the write cache after the file is written. This ensures the file has finished writing when your application thinks it has finished writing. Have a look at the API call entitled "FlushFileBuffers".
However, doesn't stop the user removing the pen while it is writing...
Cheers
Ian
However, doesn't stop the user removing the pen while it is writing...

Cheers
Ian
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM



