2nd May 10:50
CeMountDBVol returns ERROR_ACCESS_DENIED - Why?
I'm working on a pretty basic program where I want to get the contacts
out of the contacts database using RAPI. My app works fine for all
standard Pocket PC devices, just not the smartphone. So, as far as I
understand it, I need to do:
Instead of simply CeOpenDatabase.
So, I'm trying to mount the persistent store's database using:
if (CeMountDBVol(&vol, L"\\IPSM\\mxip_initdb.vol", OPEN_ALWAYS ))
dc.TextOut( 0, y, "Mount volume succeeded");
dc.TextOut( 0, y, "Mount volume failed");
sprintf(text,"Last error: %d", CeGetLastError());
dc.TextOut( 0, y, text);
Yes, I realize that I shouldn't hard code IPSM, but for now I'm doing it
for testing; I'll switch to getting the name of say the personal folder
and strip everything out.
I'm receiving an ERROR_ACCESS_DENIED and am not sure why. What am I
doing wrong? If I use an iPAQ 5550 and change IPSM to Storage Card, it
works and creates the database if needed.
Any assistance would be much appreciated.