GetTempFileName function kernel32

int GetTempFileName(
  1. Pointer<Utf16> lpPathName,
  2. Pointer<Utf16> lpPrefixString,
  3. int uUnique,
  4. Pointer<Utf16> lpTempFileName,
)

Creates a name for a temporary file. If a unique file name is generated, an empty file is created and the handle to it is released; otherwise, only a file name is generated.

UINT GetTempFileNameW(
  [in]  LPCWSTR lpPathName,
  [in]  LPCWSTR lpPrefixString,
  [in]  UINT    uUnique,
  [out] LPWSTR  lpTempFileName
);

Implementation

int GetTempFileName(Pointer<Utf16> lpPathName, Pointer<Utf16> lpPrefixString,
        int uUnique, Pointer<Utf16> lpTempFileName) =>
    _GetTempFileName(lpPathName, lpPrefixString, uUnique, lpTempFileName);