CredMarshalTargetInfo function (ntsecpkg.h)
Serializes the specified target into an array of byte values.
Syntax
NTSTATUS CredMarshalTargetInfo(
[in] PCREDENTIAL_TARGET_INFORMATIONW InTargetInfo,
[out] PUSHORT *Buffer,
PULONG BufferSize
);
Parameters
[in] InTargetInfo
A pointer to a Unicode version of the CREDENTIAL_TARGET_INFORMATION structure that specifies the target to serialize.
[out] Buffer
The serialized array of byte values that represents the target specified by the InTargetInfo parameter.
BufferSize
The size, in bytes, of the Buffer array.
Return value
If the function succeeds, it returns STATUS_SUCCESS.
If the function fails, it returns an error code that indicates the reason it failed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | ntsecpkg.h |
Library | Advapi32.lib |
DLL | Advapi32.dll |