GetEnvironmentVariable function kernel32

int GetEnvironmentVariable(
  1. Pointer<Utf16> lpName,
  2. Pointer<Utf16> lpBuffer,
  3. int nSize
)

Retrieves the contents of the specified variable from the environment block of the calling process.

DWORD GetEnvironmentVariableW(
  LPCTSTR lpName,
  LPTSTR  lpBuffer,
  DWORD   nSize
);

Implementation

int GetEnvironmentVariable(
        Pointer<Utf16> lpName, Pointer<Utf16> lpBuffer, int nSize) =>
    _GetEnvironmentVariable(lpName, lpBuffer, nSize);