Lines Matching full:syscall
9 "syscall"
16 err := syscall.NetGetJoinInformation(nil, &domain, &status)
20 syscall.NetApiBufferFree((*byte)(unsafe.Pointer(domain)))
21 return status == syscall.NetSetupDomainName, nil
25 return syscall.TranslateAccountName(domainAndUser,
26 syscall.NameSamCompatible, syscall.NameDisplay, 50)
30 s, e := syscall.UTF16PtrFromString(servername)
34 u, e := syscall.UTF16PtrFromString(username)
39 e = syscall.NetUserGetInfo(s, u, 10, &p)
43 defer syscall.NetApiBufferFree(p)
44 i := (*syscall.UserInfo10)(unsafe.Pointer(p))
48 name := syscall.UTF16ToString((*[1024]uint16)(unsafe.Pointer(i.FullName))[:])
70 func newUser(usid *syscall.SID, gid, dir string) (*User, error) {
75 if t != syscall.SidTypeUser {
98 t, e := syscall.OpenCurrentProcessToken()
125 func newUserFromSid(usid *syscall.SID) (*User, error) {
133 sid, _, t, e := syscall.LookupSID("", username)
137 if t != syscall.SidTypeUser {
144 sid, e := syscall.StringToSid(uid)