共用方式為


SpUnsealMessageFn 回呼函式 (ntsecpkg.h)

解密先前使用 SpSealMessage 函式加密的訊息。

SpUnsealMessage 函式是 Security Support Provider InterfaceDecryptMessage (General) 函式的分派函式。

語法

SpUnsealMessageFn Spunsealmessagefn;

NTSTATUS Spunsealmessagefn(
  [in]  LSA_SEC_HANDLE ContextHandle,
  [in]  PSecBufferDesc MessageBuffers,
  [in]  ULONG MessageSequenceNumber,
  [out] PULONG QualityOfProtection
)
{...}

參數

[in] ContextHandle

用來密封訊息 的安全性內容 句柄。

[in] MessageBuffers

SecBufferDesc 結構的指標,其中包含訊息緩衝區和簽章緩衝區。

[in] MessageSequenceNumber

要指派給訊息的序號。 序號是選擇性的,可用來防止訊息遺失和插入。 值為零表示序號不在使用中。

[out] QualityOfProtection

未使用。

傳回值

如果函式成功,請傳回STATUS_SUCCESS。

如果函式失敗,則傳回 NTSTATUS 程式代碼,指出失敗的原因。

備註

SSP/AP 必須實作 SpUnsealMessage 函 式;不過,提供給實作的實際名稱是由開發人員決定。

SpUnsealMessage 函式的指標可在從 SpUserModeInitialize 函式收到的SECPKG_USER_FUNCTION_TABLE結構中使用。

規格需求

需求
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限桌面應用程式]
目標平台 Windows
標頭 ntsecpkg.h

另請參閱

DecryptMessage (一般)

SECPKG_USER_FUNCTION_TABLE

SpSealMessage

SpUserModeInitialize