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

os: use C.GetUserNameW for os.loginname() instead + improvements os.uname() (#9872)

This commit is contained in:
Bastian Buck
2021-04-25 17:16:14 +02:00
committed by GitHub
parent bfe0a7887f
commit 160b605640
2 changed files with 12 additions and 5 deletions

View File

@ -217,6 +217,8 @@ fn C.ExpandEnvironmentStringsW(lpSrc &u16, lpDst &u16, nSize u32) u32
fn C.GetComputerNameW(&u16, &u32) bool
fn C.GetUserNameW(&u16, &u32) bool
[trusted]
fn C.SendMessageTimeout() u32