I haven't been able to find much in terms of samples of Unmanaged code for the sync framework.
I do have my sync process working fine through managed c# code. Now i'd like to be able to access the metadata store through unmanaged c++ code. I have been able to open the metadata store...but need some help iterating through the values in
the store. I can do this on the C# side through SimpleSyncServices.EnumerateAllLiveItems
I know i'm supposed to use the ISimplesyncServices interface, but not sure how to go about it...I'm new to Com programming....do I use CoCreateInstance to get to that interface? What would i use for the first parameter for that function....it should
be the com object that exposes that interface...
this is what i have so far...
hr = CoCreateInstance(CLSID_SyncMetadataStore, NULL, CLSCTX_INPROC_SERVER, IID_ISqlSyncMetadataStore,
(void **) &m_pSqlMetadataStore);
if (SUCCEEDED(hr))
{
hr = m_pSqlMetadataStore->OpenStore(L"c:\\path to store", 0x409);
if (HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) == hr)
{
int j =0;
}
}