ITpmVirtualSmartCardManager::DestroyVirtualSmartCard method (tpmvscmgr.h)

Destroys the TPM virtual smart card that has the given instance ID.

Syntax

HRESULT DestroyVirtualSmartCard(
  [in]           LPCWSTR                                   pszInstanceId,
  [in, optional] ITpmVirtualSmartCardManagerStatusCallback *pStatusCallback,
  [out]          BOOL                                      *pfNeedReboot
);

Parameters

[in] pszInstanceId

Instance identifier of the TPM virtual smart card that is returned from a successful CreateVirtualSmartCard method call.

[in, optional] pStatusCallback

Pointer to a ITpmVirtualSmartCardManagerStatusCallback interface. The TPM virtual smart card manager uses this callback interface to communicate the progress and errors during creation of the virtual smart card. If the pStatusCallback parameter is NULL, no progress is reported to the client before the operation completes.

[out] pfNeedReboot

Pointer to a Boolean value to receive whether the requested operation needs to reboot the client computer.

Return value

If the method succeeds, it returns S_OK.

If the method fails, it returns a Win32 error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tpmvscmgr.h
Library Vscmgr.lib

See also

ITpmVirtualSmartCardManager