Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetTokenPrimaryGroup (0.25 sec)

  1. src/syscall/security_windows.go

    	if e != nil {
    		return nil, e
    	}
    	return (*Tokenuser)(i), nil
    }
    
    // GetTokenPrimaryGroup retrieves access token t primary group information.
    // A pointer to a SID structure representing a group that will become
    // the primary group of any objects created by a process using this access token.
    func (t Token) GetTokenPrimaryGroup() (*Tokenprimarygroup, error) {
    	i, e := t.getInfo(TokenPrimaryGroup, 50)
    	if e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. src/os/user/lookup_windows.go

    	t, e := syscall.OpenCurrentProcessToken()
    	if e != nil {
    		return nil, e
    	}
    	defer t.Close()
    	u, e := t.GetTokenUser()
    	if e != nil {
    		return nil, e
    	}
    	pg, e := t.GetTokenPrimaryGroup()
    	if e != nil {
    		return nil, e
    	}
    	uid, e := u.User.Sid.String()
    	if e != nil {
    		return nil, e
    	}
    	gid, e := pg.PrimaryGroup.String()
    	if e != nil {
    		return nil, e
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top