Documentation ¶
Index ¶
- Constants
- func CoCreateInstance(clsid *windows.GUID, unkOuter *IUnknown, clsContext uint32, iid *windows.GUID) (v unsafe.Pointer, err error)
- func CoInitializeEx(reserved uintptr, coInitFlag uint32) (err error)
- func CoTaskMemFree(address unsafe.Pointer)
- func CoUninitialize()
- func IID_IPropertyStore() windows.GUID
- func IID_IUnknown() windows.GUID
- type HRESULT
- type IPropertyStore
- func (self *IPropertyStore) Commit() (err error)
- func (self *IPropertyStore) GetAt(iProp uint32) (key *PROPERTYKEY, err error)
- func (self *IPropertyStore) GetCount() (cProps uint32, err error)
- func (self *IPropertyStore) GetValue(key PROPERTYKEY) (propVar PROPVARIANT, err error)
- func (self *IPropertyStore) Release() (err error)
- func (self *IPropertyStore) SetValue(key PROPERTYKEY, propVar PROPVARIANT) (err error)
- type IUnknown
- type IUnknownVtbl
- type PROPERTYKEY
- type PROPVARIANT
Constants ¶
View Source
const ( STGM_READ = 0x00000000 STGM_WRITE = 0x00000001 STGM_READWRITE = 0x00000002 )
Variables ¶
This section is empty.
Functions ¶
func CoCreateInstance ¶
func CoCreateInstance( clsid *windows.GUID, unkOuter *IUnknown, clsContext uint32, iid *windows.GUID, ) (v unsafe.Pointer, err error)
创建并默认初始化与指定 CLSID 关联的类的单个对象。
func CoInitializeEx ¶
初始化 COM 库以供调用线程使用,设置线程的并发模型,并根据需要为线程创建一个新单元。
func CoTaskMemFree ¶
释放先前通过调用 CoTaskMemAlloc 或 CoTaskMemRealloc 函数分配的任务内存块。
func CoUninitialize ¶
func CoUninitialize()
关闭当前线程上的 COM 库,卸载线程加载的所有 DLL,释放线程维护的任何其他资源,并强制关闭线程上的所有 RPC 连接。
func IID_IPropertyStore ¶
func IID_IUnknown ¶
Types ¶
type IPropertyStore ¶
type IPropertyStore struct {
// contains filtered or unexported fields
}
func (*IPropertyStore) GetAt ¶
func (self *IPropertyStore) GetAt(iProp uint32) (key *PROPERTYKEY, err error)
从项的属性数组中获取属性键。
func (*IPropertyStore) GetCount ¶
func (self *IPropertyStore) GetCount() (cProps uint32, err error)
此方法返回附加到文件的属性数的计数。
func (*IPropertyStore) GetValue ¶
func (self *IPropertyStore) GetValue(key PROPERTYKEY) (propVar PROPVARIANT, err error)
此方法检索特定属性的数据。
func (*IPropertyStore) Release ¶
func (self *IPropertyStore) Release() (err error)
func (*IPropertyStore) SetValue ¶
func (self *IPropertyStore) SetValue(key PROPERTYKEY, propVar PROPVARIANT) (err error)
此方法设置属性值或替换或删除现有值。
type IUnknownVtbl ¶
type PROPERTYKEY ¶
func PKEY_Device_ContainerId ¶
func PKEY_Device_ContainerId() PROPERTYKEY
func PKEY_Device_DeviceDesc ¶
func PKEY_Device_DeviceDesc() PROPERTYKEY
func PKEY_Device_FriendlyName ¶
func PKEY_Device_FriendlyName() PROPERTYKEY
func PKEY_Device_InstanceId ¶
func PKEY_Device_InstanceId() PROPERTYKEY
type PROPVARIANT ¶
type PROPVARIANT struct { Vt uint16 // Value type tag. WReserved1 uint16 WReserved2 uint16 WReserved3 uint16 Val uint64 // contains filtered or unexported fields }
func (*PROPVARIANT) PwszVal ¶
func (self *PROPVARIANT) PwszVal() *uint16
func (*PROPVARIANT) PwszValString ¶ added in v0.2.0
func (self *PROPVARIANT) PwszValString() string
Click to show internal directories.
Click to hide internal directories.