1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: use GetComputerNameW to retrieve hostname on Windows (#9861)

This commit is contained in:
Marcos Diaz
2021-04-24 12:22:04 +02:00
committed by GitHub
parent dee4904bee
commit 187895c93c
2 changed files with 9 additions and 2 deletions

View File

@ -215,6 +215,8 @@ fn C.SetHandleInformation(hObject voidptr, dwMask u32, dw_flags u32) bool
fn C.ExpandEnvironmentStringsW(lpSrc &u16, lpDst &u16, nSize u32) u32
fn C.GetComputerNameW(&u16, &u32) bool
[trusted]
fn C.SendMessageTimeout() u32