GetUserName function advapi32

int GetUserName(
  1. Pointer<Utf16> lpBuffer,
  2. Pointer<Uint32> pcbBuffer
)

Retrieves the name of the user associated with the current thread.

BOOL GetUserNameW(
  LPWSTR  lpBuffer,
  LPDWORD pcbBuffer);

Implementation

int GetUserName(Pointer<Utf16> lpBuffer, Pointer<Uint32> pcbBuffer) =>
    _GetUserName(lpBuffer, pcbBuffer);