win32

package
v0.0.0-...-276cfcd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	FOLDERID_RoamingAppData = syscall.GUID{0x3EB685DB, 0x65F9, 0x4CF6, [8]byte{0xA0, 0x3A, 0xE3, 0xEF, 0x65, 0x72, 0x9F, 0x3D}}
)

Functions

func CoTaskMemFree

func CoTaskMemFree(pv uintptr)

func CredDelete

func CredDelete(TargetName string, Type, Flags DWORD) error

func CredWrite

func CredWrite(Credential *CREDENTIAL, Flags DWORD) error

func SHGetKnownFolderPath

func SHGetKnownFolderPath(rfid *syscall.GUID, dwFlags uint32, hToken syscall.Handle) (string, error)

Types

type CREDENTIAL

type CREDENTIAL struct {
	Flags          DWORD
	Type           DWORD
	TargetName     string
	Comment        string
	LastWritten    FILETIME
	CredentialBlob string
	Persist        DWORD
	Attributes     []CREDENTIAL_ATTRIBUTE
	TargetAlias    string
	UserName       string
}

type CREDENTIAL_ATTRIBUTE

type CREDENTIAL_ATTRIBUTE struct {
	Keyword string
	Flags   DWORD
	Value   []byte
}

type DWORD

type DWORD uint32
const (
	CRED_FLAGS_PROMPT_NOW      DWORD = 0x2
	CRED_FLAGS_USERNAME_TARGET DWORD = 0x4
)
const (
	CRED_TYPE_GENERIC                 DWORD = 0x1
	CRED_TYPE_DOMAIN_PASSWORD         DWORD = 0x2
	CRED_TYPE_DOMAIN_CERTIFICATE      DWORD = 0x3
	CRED_TYPE_DOMAIN_VISIBLE_PASSWORD DWORD = 0x4
	CRED_TYPE_GENERIC_CERTIFICATE     DWORD = 0x5
	CRED_TYPE_DOMAIN_EXTENDED         DWORD = 0x6
	CRED_TYPE_MAXIMUM                 DWORD = 0x7
	CRED_TYPE_MAXIMUM_EX              DWORD = CRED_TYPE_MAXIMUM + 1000
)
const (
	CRED_PERSIST_SESSION       DWORD = 0x1
	CRED_PERSIST_LOCAL_MACHINE DWORD = 0x2
	CRED_PERSIST_ENTERPRISE    DWORD = 0x3
)

type FILETIME

type FILETIME struct {
	DwLowDateTime  DWORD
	DwHighDateTime DWORD
}

type HRESULT

type HRESULT uint32
const (
	S_OK         HRESULT = 0x00000000
	E_FAIL       HRESULT = 0x80004005
	E_INVALIDARG HRESULT = 0x80070057
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL