Problems with COM security in the Vista 5308 build

Posted: 03-22-2006, 01:51 PM
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_ISyncMgrRegi ster,(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.


Reply With Quote

Responses to "Problems with COM security in the Vista 5308 build"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista Build 5308 - Can't Login to W2K3 domain KS Windows Vista Networking & Sharing 2 05-11-2006 07:08 PM
Catalyst Beta Driver for Windows Vista Build 5308 Andre Da Costa [Extended64] Windows Vista Hardware & Devices 14 04-06-2006 06:26 PM
COM Security Problems in Vista Beta 5308 release Paul Chis Windows Vista Performance & Maintenance 0 03-22-2006 02:24 PM
Windows Vista Build 5308 Upgrade Install Successful! Kevin John Panzke Windows Vista 7 03-20-2006 09:08 PM
Vista build 5308.60 John Windows Vista 9 03-07-2006 12:10 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90