ITpmVirtualSmartCardManager::DestroyVirtualSmartCard method

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

Syntax


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

Parameters

pszInstanceID [in]

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

pStatusCallback [in, optional]

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.

pfNeedReboot [out]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tpmvscmgr.h

IDL

Tpmvscmgr.idl

Library

Vscmgr.lib

See also

ITpmVirtualSmartCardManager

 

 

Community Additions

ADD
Show:
© 2014 Microsoft