PC Review


Reply
Thread Tools Rate Thread

COM Security Problems in Vista Beta 5308 release

 
 
Paul Chis
Guest
Posts: n/a
 
      22nd Mar 2006
Hello.
I developed a COM object in Windows Vista Beta 5270 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Vista Security Guide Beta Release =?Utf-8?B?RGVyaWNrIENhbXBiZWxsIChNU0ZUKQ==?= Windows Vista Security 5 8th Sep 2006 05:49 AM
WinFX Beta 2 in Vista 5308 Kaetemi Windows Vista General Discussion 5 26th May 2006 01:05 AM
Problems with COM security in the Vista 5308 build Paul Chis Windows Vista General Discussion 0 22nd Mar 2006 02:51 PM
ATI Catalyst Beta Driver for Windows Vista 5308 Available Andre Da Costa [Extended64] Windows Vista General Discussion 0 13th Mar 2006 08:07 PM
ATI Catalyst Beta Driver for Windows Vista 5308 Available Andre Da Costa [Extended64] Windows Vista Hardware 0 13th Mar 2006 08:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:42 PM.