RAPI CeDeleteFile

  • Thread starter Thread starter Ian Williamson
  • Start date Start date
I

Ian Williamson

I am attempting to use the OpenNetCF RAPI library to
delete a file on a handheld. I am constantly getting
an "Access is denied" error from CeGetLastError(). The
file is stored in flash memory and has no attributes
set. I have tried connecting to ActiveSync both as a
Guest and in a Partnership. No luck.

Any suggestions?

Cheers, Ian
 
Is the file read-only? If so, you need to clear that attribute bit before
you can delete the file.

Paul T.
 
Solved it.

There is a small bug with closing the file handle in
DeviceFileExists() method in the RAPI library. I will
forward it to the OpenNetCF group.
 
Back
Top