回傳一個取消 ID,可傳給 WebAuthNCancelCurrentOperation 以取消待處理的 WebAuthNAuthenticatorMakeCredential 或 WebAuthNAuthenticatorGetAssertion 呼叫。
語法
HRESULT WebAuthNGetCancellationId(
GUID *pCancellationId
);
參數
pCancellationId
一個指向接收取消 ID 的 GUID 的指標。 將此值傳給 WebAuthNCancelCurrentOperation 以取消該操作。
返回值
如果函式成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。 呼叫 WebAuthNGetErrorName 以獲得人類可讀的錯誤字串。
需求
| Requirement | 價值觀 |
|---|---|
| Header | webauthn.h |
| Library | OneCoreUAP.Lib |