Syntax

Parameters

pvSystemStore [in]

Identifies the system store to be registered. If CERT_SYSTEM_STORE_RELOCATE_FLAG is set in the dwFlags parameter, pvSystemStore points to a
CERT_SYSTEM_STORE_RELOCATE_PARA structure. Otherwise, it points to a null-terminated Unicode string that names the system store.

With appropriate settings in dwFlags, the identified store can be a system store on a remote local computer. Stores on remote computers can be registered with the computer name as a prefix to the name of the system store. For example, a remote local computer store can be registered with pvSystemStore pointing to the string "\\ComputerName\Trust" or "ComputerName\Trust".

Leading "\\" backslashes are optional before a ComputerName.

dwFlags [in]

The high word of the dwFlags parameter is used to specify the location of the system store.

The following high-word values are defined.

Value

Meaning

CERT_SYSTEM_STORE_CURRENT_SERVICE

pvSystemStore can be a system store name that is prefixed with the ServiceName.

CERT_SYSTEM_STORE_CURRENT_USER

pvSystemStore can be a system store name that is prefixed with the UserName.

CERT_SYSTEM_STORE_LOCAL_MACHINE

pvSystemStore can be a system store that is on a remote computer.

CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY

pvSystemStore is a group policy store and can be on a remote computer.

CERT_SYSTEM_STORE_SERVICES

pvSystemStore must be a system store name prefixed with the ServiceName.

CERT_SYSTEM_STORE_USERS

pvSystemStore must be a system store name that is prefixed with the UserName.

Stores on remote computers can be registered for CERT_SYSTEM_STORE_LOCAL_MACHINE, CERT_SYSTEM_STORE_SERVICES, CERT_SYSTEM_STORE_USERS, or CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY.

The following low-word values are also defined and can be combined using a bitwise-OR operation with high-word values.