Clarify platform availability of GetTempPath2
Windows Server 2022 is a different version from Win11, breaking precent
This commit is contained in:
parent
413ca98d91
commit
1d26e413de
1 changed files with 1 additions and 1 deletions
|
@ -1103,7 +1103,7 @@ compat_fn! {
|
||||||
GetSystemTimeAsFileTime(lpSystemTimeAsFileTime)
|
GetSystemTimeAsFileTime(lpSystemTimeAsFileTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
// >= Win11
|
// >= Win11 / Server 2022
|
||||||
// https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppath2a
|
// https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppath2a
|
||||||
pub fn GetTempPath2W(nBufferLength: DWORD, lpBuffer: LPCWSTR) -> DWORD {
|
pub fn GetTempPath2W(nBufferLength: DWORD, lpBuffer: LPCWSTR) -> DWORD {
|
||||||
GetTempPathW(nBufferLength, lpBuffer)
|
GetTempPathW(nBufferLength, lpBuffer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue