Registering physical store under ROOT System Store problem
- From: Juan Segarra <juan@xxxxxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 13:27:46 +0100
Hi all!!
I'm trying to register a physical store under the ROOT System Store. With the code below i can see it under HKCU\Software\Microsoft\SystemCertificates\Root\PhysicalStores but it's not opened when the ROOT is opened (Both IE and the certificates complement in the MMC).
Nearly the same code works fine for MY, AddressBook, and CA stores.
I've seen this behaviour under Windows XP but not tested it in other operating systems.
Is it possible to register under Root system store or i'm missing something?
Thanks in advance,
Juan.
-----------------
dwStoreToRegister = 3;
memset(&PhysicalStoreInfo, 0, sizeof(CERT_PHYSICAL_STORE_INFO));
PhysicalStoreInfo.cbSize = sizeof(CERT_PHYSICAL_STORE_INFO);
PhysicalStoreInfo.pszOpenStoreProvider = (LPSTR)CLAUERSTORE_OID;
PhysicalStoreInfo.dwFlags = CERT_PHYSICAL_STORE_REMOTE_OPEN_DISABLE_FLAG;
PhysicalStoreInfo.OpenParameters.pbData = (LPBYTE) &dwStoreToRegister;
PhysicalStoreInfo.OpenParameters.cbData = sizeof(DWORD);
PhysicalStoreInfo.dwPriority = 1;
PhysicalStoreInfo.dwOpenEncodingType = 0;
if(!CertRegisterPhysicalStore(
L"Root",
CERT_SYSTEM_STORE_CURRENT_USER,
L"ClauerStore",
&PhysicalStoreInfo,
NULL
))
{
return E_FAIL;
}
.
- Prev by Date: Re: Is fix for 818173 present in win-xp sp2?
- Next by Date: ASPNET->NETWORK SERVICE rights too restrictive
- Previous by thread: Re: Calling CreateProcessAsUser from service in Vista
- Next by thread: ASPNET->NETWORK SERVICE rights too restrictive
- Index(es):