GetTempPath function kernel32
Retrieves the path of the directory designated for temporary files.
To learn more, see learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-gettemppathw.
Implementation
Win32Result<int> GetTempPath(int nBufferLength, PWSTR? lpBuffer) {
final result_ = GetTempPathW_Wrapper(nBufferLength, lpBuffer ?? nullptr);
return .new(value: result_.value.u32, error: result_.error);
}