Skip to main content
Get the PFEntityKey for an entity.

Syntax

Parameters

entityHandle   PFEntityHandle PFEntityHandle returned from a auth call. bufferSize   size_t The size of the buffer for the PFEntityKey. The required size can be obtained from PFEntityGetEntityKeySize. buffer   void*
*Out_writes_bytes_to(bufferSize,bufferUsed)
Byte buffer used for the PFEntityKey and its fields. entityKey   PFEntityKey**
library-allocated output
TBD bufferUsed   size_t*
optional output
The number of bytes in the provided buffer that were used.

Return value

Type: HRESULT Result code for this API operation.

Remarks

entityKey is a pointer within buffer and does not need to be freed separately.

Requirements

Header: PFEntity.h

See also

PFEntity members
Last modified on August 3, 2026