Hi...
I have tried to access 'Contacts Database' that is under '\\database'
folder.
I don't want to use POOM.
so I used RAPI and I could access general database as *.cdb under other
folers.
but I can't access DB which are in '\\database' folder.
I wonder what is different between general db and 'Contacts Database'
Firstly, I had tried to mount 'Contacts Database' but I couldn't mount db.
what's wrong with code..?
===============================================================
RAPIINIT ri;
ri.cbSize = sizeof(ri);
hRapiResult = CeRapiInitEx(&ri);
if (FAILED(hRapiResult))
{
return FALSE;
}
strDbName = "\\Databases\\Contacts Database";
MultiByteToWideChar(CP_ACP,
0,
strDbName,
strlen(strDbName)+1,
(LPWSTR)&wDBname,
sizeof(wDBname));
pceguid = (PCEGUID)LocalAlloc(LPTR, sizeof(CEGUID));
lpBuf = (LPWSTR) LocalAlloc (LPTR, MAX_PATH);
if (!CeMountDBVol (pceguid, // Pointer to a CEGUID.
wDBname, // Database-volume name.
OPEN_EXISTING))
{
........................
}
===============================================================
your earliest reply will be appreciated!
thanks.