Registering physical store under ROOT System Store problem



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;
}
.