...

Source file src/github.com/Microsoft/hcsshim/internal/winapi/logon.go

Documentation: github.com/Microsoft/hcsshim/internal/winapi

     1  package winapi
     2  
     3  // BOOL LogonUserA(
     4  // 	LPCWSTR  lpszUsername,
     5  // 	LPCWSTR  lpszDomain,
     6  // 	LPCWSTR  lpszPassword,
     7  // 	DWORD   dwLogonType,
     8  // 	DWORD   dwLogonProvider,
     9  // 	PHANDLE phToken
    10  // );
    11  //
    12  //sys LogonUser(username *uint16, domain *uint16, password *uint16, logonType uint32, logonProvider uint32, token *windows.Token) (err error) = advapi32.LogonUserW
    13  
    14  // Logon types
    15  const (
    16  	LOGON32_LOGON_INTERACTIVE       uint32 = 2
    17  	LOGON32_LOGON_NETWORK           uint32 = 3
    18  	LOGON32_LOGON_BATCH             uint32 = 4
    19  	LOGON32_LOGON_SERVICE           uint32 = 5
    20  	LOGON32_LOGON_UNLOCK            uint32 = 7
    21  	LOGON32_LOGON_NETWORK_CLEARTEXT uint32 = 8
    22  	LOGON32_LOGON_NEW_CREDENTIALS   uint32 = 9
    23  )
    24  
    25  // Logon providers
    26  const (
    27  	LOGON32_PROVIDER_DEFAULT uint32 = 0
    28  	LOGON32_PROVIDER_WINNT40 uint32 = 2
    29  	LOGON32_PROVIDER_WINNT50 uint32 = 3
    30  )
    31  

View as plain text