GetTempPath function Null safety kernel32

int GetTempPath(
  1. int nBufferLength,
  2. Pointer<Utf16> lpBuffer
)

Retrieves the path of the directory designated for temporary files.

DWORD GetTempPathW(
  DWORD  nBufferLength,
  LPWSTR lpBuffer
);

Implementation

int GetTempPath(int nBufferLength, Pointer<Utf16> lpBuffer) =>
    _GetTempPath(nBufferLength, lpBuffer);