Description

Function will update current user information with user information from passed protection interface structure.

Next time GetInterfaceData function is called returned protection interface structure will contain updated user information.

Availability

Protection method: ALL
Application status: ALL
Required features: Protection interface

Declaration

Visual C/C++
extern "C" __declspec(dllimport) int __stdcall UpdateUserInfo(PPCG_INTERFACE pcgi);
Visual Basic
Declare Function UpdateUserInfoLib "pcgint.dll" Alias "_UpdateUserInfo@4" (ByRef pcgi As PCG_INTERFACE_STRUCT) As Long
Delphi
function UpdateUserInfo(var pcgi: PCGI_STRUCT): longint; stdcall; external 'pcgint.dll' name '_UpdateUserInfo@4';
Delphi 64bit
function UpdateUserInfo(var pcgi: PCGI_STRUCT): Int64; stdcall; external 'pcgint64.dll';

Parameters

PPCG_INTERFACE - Pointer to buffer for interface structure

Return values

If the function succeeds, PCGI_STATUS_OK is returned.

If the function fails, function will return PCGI_ERROR_WRONG_STRUCTURE_SIZE.

Full list of return codes is available here.

Notes

- Protected application should set PCGI_Size structure member before calling this function. Protection code is using this data for checking validity of interface structure.