TokenBindingGenerateMessage function

Assembles the list of token bindings and generates the final message for the client device to the server.

Syntax

SECURITY_STATUS TokenBindingGenerateMessage(
  const void * [] tokenBindings,
  const DWORD []  tokenBindingsSize,
  DWORD           tokenBindingsCount,
  void            **tokenBindingMessage,
  DWORD           *tokenBindingMessageSize
);

Parameters

tokenBindings

Pointer to an array of token binding structures.

tokenBindingsSize

An array that contains the sizes of the corresponding token binding structures that the array in the tokenBindings parameter contains, in bytes.

tokenBindingsCount

The number of elements that the array in the tokenBindings parameter contains. This value cannot be 0.

tokenBindingMessage

A pointer that receives the address of the buffer that is allocated for the token binding message. Use the HeapAlloc function to allocate the memory for this buffer, and the HeapFree method to free that memory.

tokenBindingMessageSize

A pointer to a variable that contains the size of the buffer allocated for the tokenBindingMessage parameter.

Return Value

Returns a status code that indicates the success or failure of the function.

Remarks

You can call TokenBindingGenerateMessage from user mode.

Requirements

   
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header tokenbinding.h
Library Tokenbinding.lib
DLL Tokenbinding.dll

See Also

HeapAlloc

HeapFree

TokenBindingVerifyMessage