paulchis Posted March 22, 2006 Posted March 22, 2006 Hello.I developed a COM object in Windows Vista Beta 5207 release which registered with Sync Center. I used as a model the sample code from Windows Vista SDK. It all worked fine until I installed the new 5308 release of Windows Vista. Now, the code fails when trying to register the dll.This is the sample code that fails:hr = CoCreateInstance (CLSID_SyncMgr,NULL,CLSCTX_SERVER,IID_ISyncMgrRegister,(LPVOID *) &lpSyncMgrRegister);if (SUCCEEDED(hr)){ hr = lpSyncMgrRegister->RegisterSyncMgrHandler(CLSID_SyncMgrHandler, wszCLSIDDescription,0 /* dwSyncMgrRegisterFlags */); AssertSz(SUCCEEDED(hr),"Registration Failed"); hr = lpSyncMgrRegister->Release(); }The call on lpSyncMgrRegister->RegisterSyncMgrHandler returns E_ACCESSDENIED.Can anyone give me a clue about what's happening here. I tried the sample code provided with the Windows Platform SDK and it works just the same.I even tried to use hr = CoInitializeSecurity(NULL, -1, NULL, NULL,RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL,EOAC_NONE, NULL);before the code section specified above, but has no effect.Thanks and the best regards,Paul Chis.
fizban2 Posted March 22, 2006 Posted March 22, 2006 cool to see code being written for vista already, but your chances of it being anwsered here are pretty slim, try the MSDN forums from MS MSDN Forumsi would have to say it is something with the rights that are being applied when trying to register the dll, maybe something to do with the elevated rights.
paulchis Posted March 23, 2006 Author Posted March 23, 2006 Thanks for the suggestion, I'll try that!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now