IWSDSignatureProperty::GetSignature method (wsdbase.h)

Gets the signature of a message.

Syntax

HRESULT GetSignature(
  [out]     BYTE  *pbSignature,
  [in, out] DWORD *pdwSignatureSize
);

Parameters

[out] pbSignature

A pointer to a buffer that will be filled with the signature of the message.

[in, out] pdwSignatureSize

On input, the size of pbSignature in bytes. On output, pdwSignatureSize contains the actual size of the buffer that was written.

Return value

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
Method succeeded.
E_NOTAVAIL
The message is not signed.
HRESULT_FROM_WIN32(ERROR_MORE_DATA)
pbSignature is not large enough to hold the information. pdwSignatureSize now specifies the required buffer size.

Remarks

If NULL is passed to pbSignature, then GetSignature will return the size of the buffer to allocate in the pdwSignatureSize parameter.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header wsdbase.h (include Wsdapi.h)
DLL Wsdapi.dll

See also

IWSDSignatureProperty