IEnroll::get_ContainerNameWStr method (xenroll.h)

[This property is no longer available for use as of Windows Server 2008 and Windows Vista.]

The ContainerNameWStr property sets or retrieves the name of the key container to use.

This property was first defined in the IEnroll interface.

This property is read/write.

Syntax

HRESULT get_ContainerNameWStr(
  LPWSTR *szwContainer
);

Parameters

szwContainer

Return value

None

Remarks

The container specified may be an existing container or a new one. It may only be an existing container if the UseExistingKeySet property is set, as long as the key set has not been generated yet. For example, if only an exchange key set has been generated for a container, it is still possible to perform a certificate enrollment using the signature key set without setting UseExistingKeySet. The exchange key set could be used if UseExistingKeySet is set beforehand.

By default, a new container is selected each time the IEnroll control is run. This ensures that a new key set is generated. If this property is not explicitly set, a generated GUID is used as the container name.

The ContainerNameWStr property affects the behavior of the following methods:

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header xenroll.h
Library Uuid.lib
DLL Xenroll.dll

See also

IEnroll