Documentation ¶
Index ¶
- Constants
- Variables
- func WinErrHandler(err error, rc uintptr) error
- type COINIT
- type GPO_OPEN_FLAG
- type GPO_OPTION
- type GPO_SECTION_TYPE
- type GROUP_POLICY_OBJECT_TYPE
- type GroupPolicyObject
- func (gpo *GroupPolicyObject) AddRef() (uint, error)
- func (gpo *GroupPolicyObject) Delete() error
- func (gpo *GroupPolicyObject) GetDSPath(dwSection uint32, pszPath string, cchMaxPath int) error
- func (gpo *GroupPolicyObject) GetDisplayName(pszName string, cchMaxLength int) error
- func (gpo *GroupPolicyObject) GetFileSysPath(dwSection uint32, pszPath string, cchMaxPath int) error
- func (gpo *GroupPolicyObject) GetMachineName(pszName string, cchMaxLength int) error
- func (gpo *GroupPolicyObject) GetName(pszName string, cchMaxLength int) error
- func (gpo *GroupPolicyObject) GetOptions(dwOptions *uint32) error
- func (gpo *GroupPolicyObject) GetPath(pszPath string, cchMaxPath int) error
- func (gpo *GroupPolicyObject) GetRegistryKey(dwSection uint32, hKey *windows.Handle) error
- func (gpo *GroupPolicyObject) GetType(gpoType *GROUP_POLICY_OBJECT_TYPE) error
- func (gpo *GroupPolicyObject) New(pszDomainName string, pszDisplayName string, dwFlags uint32) error
- func (gpo *GroupPolicyObject) OpenDSGPO(pszPath string, dwFlags uint32) error
- func (gpo *GroupPolicyObject) OpenLocalMachineGPO(dwFlags GPO_OPEN_FLAG) error
- func (gpo *GroupPolicyObject) OpenRemoteMachineGPO(pszComputerName string, dwFlags uint32) error
- func (gpo *GroupPolicyObject) QueryInterface(riid *windows.GUID) (uintptr, error)
- func (gpo *GroupPolicyObject) Release() (uint, error)
- func (gpo *GroupPolicyObject) Save(bMachine WINBOOL, bAdd WINBOOL, pGuidExtension *windows.GUID, ...) error
- func (gpo *GroupPolicyObject) SetDisplayName(pszName string) error
- func (gpo *GroupPolicyObject) SetOptions(dwOptions uint32, dwMask uint32) error
- type GroupPolicyObjectVtable
- type WINBOOL
Constants ¶
View Source
const ( GPO_OPEN_LOAD_REGISTRY = GPO_OPEN_FLAG(0x00000001) GPO_OPEN_READ_ONLY = GPO_OPEN_FLAG(0x00000002) )
View Source
const ( GPO_OPTION_DISABLE_USER = GPO_OPTION(0x00000001) GPO_OPTION_DISABLE_MACHINE = GPO_OPTION(0x00000002) )
View Source
const ( GPO_SECTION_ROOT = GPO_SECTION_TYPE(0) GPO_SECTION_USER = GPO_SECTION_TYPE(1) GPO_SECTION_MACHINE = GPO_SECTION_TYPE(2) )
View Source
const ( GPOTypeLocal = GROUP_POLICY_OBJECT_TYPE(0) GPOTypeRemote = GROUP_POLICY_OBJECT_TYPE(1) GPOTypeDS = GROUP_POLICY_OBJECT_TYPE(2) GPOTypeLocalUser = GROUP_POLICY_OBJECT_TYPE(3) GPOTypeLocalGroup = GROUP_POLICY_OBJECT_TYPE(4) )
View Source
const ( COINIT_APARTMENTTHREADED = COINIT(0x2) COINIT_MULTITHREADED = COINIT(0x0) COINIT_DISABLE_OLE1DDE = COINIT(0x4) COINIT_SPEED_OVER_MEMORY = COINIT(0x8) )
View Source
const ( TRUE = 1 FALSE = 0 )
Constants for readability
Variables ¶
View Source
var ( CLSID_GroupPolicyObject = windows.GUID{ Data1: 0xea502722, Data2: 0xa23d, Data3: 0x11d1, Data4: [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}, } IID_IGroupPolicyObject = windows.GUID{ Data1: 0xea502723, Data2: 0xa23d, Data3: 0x11d1, Data4: [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}, } )
View Source
var ( REGISTRY_EXTENSION_GUID = windows.GUID{ Data1: 0x35378EAC, Data2: 0x683F, Data3: 0x11D2, Data4: [8]byte{0xA8, 0x9A, 0x00, 0xC0, 0x4F, 0xBB, 0xCF, 0xA2}, } CLSID_GPESnapIn = windows.GUID{ Data1: 0x8fc0b734, Data2: 0xa0e1, Data3: 0x11d1, Data4: [8]byte{0xa7, 0xd3, 0x0, 0x0, 0xf8, 0x75, 0x71, 0xe3}, } )
Functions ¶
func WinErrHandler ¶
Types ¶
type GPO_OPEN_FLAG ¶
type GPO_OPEN_FLAG uint32
type GPO_OPTION ¶
type GPO_OPTION uint32
type GPO_SECTION_TYPE ¶
type GPO_SECTION_TYPE uint32
type GROUP_POLICY_OBJECT_TYPE ¶
type GROUP_POLICY_OBJECT_TYPE uint32
type GroupPolicyObject ¶
type GroupPolicyObject struct {
// contains filtered or unexported fields
}
func NewGroupPolicyObject ¶
func NewGroupPolicyObject() (*GroupPolicyObject, error)
func (*GroupPolicyObject) AddRef ¶
func (gpo *GroupPolicyObject) AddRef() (uint, error)
func (*GroupPolicyObject) Delete ¶
func (gpo *GroupPolicyObject) Delete() error
func (*GroupPolicyObject) GetDSPath ¶
func (gpo *GroupPolicyObject) GetDSPath(dwSection uint32, pszPath string, cchMaxPath int) error
func (*GroupPolicyObject) GetDisplayName ¶
func (gpo *GroupPolicyObject) GetDisplayName(pszName string, cchMaxLength int) error
func (*GroupPolicyObject) GetFileSysPath ¶
func (gpo *GroupPolicyObject) GetFileSysPath(dwSection uint32, pszPath string, cchMaxPath int) error
func (*GroupPolicyObject) GetMachineName ¶
func (gpo *GroupPolicyObject) GetMachineName(pszName string, cchMaxLength int) error
func (*GroupPolicyObject) GetName ¶
func (gpo *GroupPolicyObject) GetName(pszName string, cchMaxLength int) error
func (*GroupPolicyObject) GetOptions ¶
func (gpo *GroupPolicyObject) GetOptions(dwOptions *uint32) error
func (*GroupPolicyObject) GetPath ¶
func (gpo *GroupPolicyObject) GetPath(pszPath string, cchMaxPath int) error
func (*GroupPolicyObject) GetRegistryKey ¶
func (gpo *GroupPolicyObject) GetRegistryKey(dwSection uint32, hKey *windows.Handle) error
func (*GroupPolicyObject) GetType ¶
func (gpo *GroupPolicyObject) GetType(gpoType *GROUP_POLICY_OBJECT_TYPE) error
func (*GroupPolicyObject) New ¶
func (gpo *GroupPolicyObject) New(pszDomainName string, pszDisplayName string, dwFlags uint32) error
func (*GroupPolicyObject) OpenDSGPO ¶
func (gpo *GroupPolicyObject) OpenDSGPO(pszPath string, dwFlags uint32) error
func (*GroupPolicyObject) OpenLocalMachineGPO ¶
func (gpo *GroupPolicyObject) OpenLocalMachineGPO(dwFlags GPO_OPEN_FLAG) error
func (*GroupPolicyObject) OpenRemoteMachineGPO ¶
func (gpo *GroupPolicyObject) OpenRemoteMachineGPO(pszComputerName string, dwFlags uint32) error
func (*GroupPolicyObject) QueryInterface ¶
func (gpo *GroupPolicyObject) QueryInterface(riid *windows.GUID) (uintptr, error)
func (*GroupPolicyObject) Release ¶
func (gpo *GroupPolicyObject) Release() (uint, error)
func (*GroupPolicyObject) SetDisplayName ¶
func (gpo *GroupPolicyObject) SetDisplayName(pszName string) error
func (*GroupPolicyObject) SetOptions ¶
func (gpo *GroupPolicyObject) SetOptions(dwOptions uint32, dwMask uint32) error
type GroupPolicyObjectVtable ¶
type GroupPolicyObjectVtable struct { QueryInterface uintptr AddRef uintptr Release uintptr New uintptr OpenDSGPO uintptr OpenLocalMachineGPO uintptr OpenRemoteMachineGPO uintptr Save uintptr Delete uintptr GetName uintptr GetDisplayName uintptr SetDisplayName uintptr GetPath uintptr GetDSPath uintptr GetFileSysPath uintptr GetRegistryKey uintptr GetOptions uintptr SetOptions uintptr GetType uintptr GetMachineName uintptr GetPropertySheetPages uintptr }
Click to show internal directories.
Click to hide internal directories.