Documentation
¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func CoCreateInstance(rclsid REFCLSID, pUnkOuter *IUnknown, dwClsContext uint32, riid REFIID, ...) win.HRESULT
- func CoGetClassObject(rclsid REFCLSID, dwClsContext uint32, pServerInfo *COSERVERINFO, riid REFIID, ...) win.HRESULT
- func CoInitializeEx(reserved unsafe.Pointer, coInit uint32) win.HRESULT
- func CoTaskMemFree(pv uintptr)
- func CoUninitialize()
- func EqualREFIID(a, b REFIID) bool
- func OleInitialize() win.HRESULT
- func OleSetContainedObject(pUnknown *IUnknown, fContained bool) win.HRESULT
- func OleUninitialize()
- type CLSID
- type COAUTHIDENTITY
- type COAUTHINFO
- type COSERVERINFO
- type IClassFactory
- type IClassFactoryVtbl
- type IConnectionPoint
- type IConnectionPointContainer
- type IConnectionPointContainerVtbl
- type IConnectionPointVtbl
- type IID
- type IOleClientSite
- type IOleClientSiteVtbl
- type IOleInPlaceFrame
- type IOleInPlaceFrameVtbl
- type IOleInPlaceObject
- type IOleInPlaceObjectVtbl
- type IOleInPlaceSite
- type IOleInPlaceSiteVtbl
- type IOleObject
- func (obj *IOleObject) Close(dwSaveOption uint32) win.HRESULT
- func (obj *IOleObject) DoVerb(iVerb int32, lpmsg *user32.MSG, pActiveSite *IOleClientSite, lindex int32, ...) win.HRESULT
- func (obj *IOleObject) QueryInterface(riid REFIID, ppvObject *unsafe.Pointer) win.HRESULT
- func (obj *IOleObject) Release() uint32
- func (obj *IOleObject) SetClientSite(pClientSite *IOleClientSite) win.HRESULT
- func (obj *IOleObject) SetHostNames(szContainerApp, szContainerObj *uint16) win.HRESULT
- type IOleObjectVtbl
- type IUnknown
- type IUnknownVtbl
- type OLEINPLACEFRAMEINFO
- type REFCLSID
- type REFIID
Constants ¶
View Source
const ( CLSCTX_INPROC_SERVER = 0x1 CLSCTX_INPROC_HANDLER = 0x2 CLSCTX_LOCAL_SERVER = 0x4 CLSCTX_INPROC_SERVER16 = 0x8 CLSCTX_REMOTE_SERVER = 0x10 CLSCTX_INPROC_HANDLER16 = 0x20 CLSCTX_RESERVED1 = 0x40 CLSCTX_RESERVED2 = 0x80 CLSCTX_RESERVED3 = 0x100 CLSCTX_RESERVED4 = 0x200 CLSCTX_NO_CODE_DOWNLOAD = 0x400 CLSCTX_RESERVED5 = 0x800 CLSCTX_NO_CUSTOM_MARSHAL = 0x1000 CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000 CLSCTX_NO_FAILURE_LOG = 0x4000 CLSCTX_DISABLE_AAA = 0x8000 CLSCTX_ENABLE_AAA = 0x10000 CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000 CLSCTX_ACTIVATE_32_BIT_SERVER = 0x40000 CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000 CLSCTX_ENABLE_CLOAKING = 0x100000 CLSCTX_PS_DLL = 0x80000000 CLSCTX_INPROC = CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER CLSCTX_ALL = CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER CLSCTX_SERVER = CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER )
View Source
const ( COINIT_APARTMENTTHREADED = 0x2 // Apartment model COINIT_MULTITHREADED = 0x0 // OLE calls objects on any thread. COINIT_DISABLE_OLE1DDE = 0x4 // Don't use DDE for Ole1 support. COINIT_SPEED_OVER_MEMORY = 0x8 // Trade memory for speed. )
View Source
const ( OLEIVERB_PRIMARY = 0 OLEIVERB_SHOW = -1 OLEIVERB_OPEN = -2 OLEIVERB_HIDE = -3 OLEIVERB_UIACTIVATE = -4 OLEIVERB_INPLACEACTIVATE = -5 OLEIVERB_DISCARDUNDOSTATE = -6 )
Verbs for IOleObject.DoVerb
View Source
const ( OLECLOSE_SAVEIFDIRTY = 0 OLECLOSE_NOSAVE = 1 OLECLOSE_PROMPTSAVE = 2 )
OLECLOSE constants
Variables ¶
View Source
var ( IID_IClassFactory = IID{0x00000001, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} IID_IConnectionPointContainer = IID{0xB196B284, 0xBAB4, 0x101A, [8]byte{0xB6, 0x9C, 0x00, 0xAA, 0x00, 0x34, 0x1D, 0x07}} IID_IOleClientSite = IID{0x00000118, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} IID_IOleInPlaceObject = IID{0x00000113, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} IID_IOleInPlaceSite = IID{0x00000119, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} IID_IOleObject = IID{0x00000112, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} IID_IUnknown = IID{0x00000000, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}} )
View Source
var (
CoInitializeExCall *windows.LazyProc
)
Functions ¶
func CoCreateInstance ¶
func CoGetClassObject ¶
func CoTaskMemFree ¶
func CoTaskMemFree(pv uintptr)
func CoUninitialize ¶
func CoUninitialize()
func EqualREFIID ¶
func OleInitialize ¶
func OleSetContainedObject ¶
func OleUninitialize ¶
func OleUninitialize()
Types ¶
type COAUTHIDENTITY ¶
type COAUTHINFO ¶
type COAUTHINFO struct {
// contains filtered or unexported fields
}
type COSERVERINFO ¶
type COSERVERINFO struct {
// contains filtered or unexported fields
}
type IClassFactory ¶
type IClassFactory struct {
LpVtbl *IClassFactoryVtbl
}
func (*IClassFactory) CreateInstance ¶
func (*IClassFactory) Release ¶
func (cf *IClassFactory) Release() uint32
type IClassFactoryVtbl ¶
type IConnectionPoint ¶
type IConnectionPoint struct {
LpVtbl *IConnectionPointVtbl
}
func (*IConnectionPoint) Release ¶
func (cp *IConnectionPoint) Release() uint32
type IConnectionPointContainer ¶
type IConnectionPointContainer struct {
LpVtbl *IConnectionPointContainerVtbl
}
func (*IConnectionPointContainer) FindConnectionPoint ¶
func (cpc *IConnectionPointContainer) FindConnectionPoint(riid REFIID, ppCP **IConnectionPoint) win.HRESULT
func (*IConnectionPointContainer) Release ¶
func (cpc *IConnectionPointContainer) Release() uint32
type IConnectionPointVtbl ¶
type IOleClientSite ¶
type IOleClientSite struct {
LpVtbl *IOleClientSiteVtbl
}
type IOleClientSiteVtbl ¶
type IOleInPlaceFrame ¶
type IOleInPlaceFrame struct {
LpVtbl *IOleInPlaceFrameVtbl
}
type IOleInPlaceFrameVtbl ¶
type IOleInPlaceFrameVtbl struct {
QueryInterface uintptr
AddRef uintptr
Release uintptr
GetWindow uintptr
ContextSensitiveHelp uintptr
GetBorder uintptr
RequestBorderSpace uintptr
SetBorderSpace uintptr
SetActiveObject uintptr
InsertMenus uintptr
SetMenu uintptr
RemoveMenus uintptr
SetStatusText uintptr
EnableModeless uintptr
TranslateAccelerator uintptr
}
type IOleInPlaceObject ¶
type IOleInPlaceObject struct {
LpVtbl *IOleInPlaceObjectVtbl
}
func (*IOleInPlaceObject) Release ¶
func (obj *IOleInPlaceObject) Release() uint32
func (*IOleInPlaceObject) SetObjectRects ¶
func (obj *IOleInPlaceObject) SetObjectRects(lprcPosRect, lprcClipRect *gdi32.RECT) win.HRESULT
type IOleInPlaceObjectVtbl ¶
type IOleInPlaceSite ¶
type IOleInPlaceSite struct {
LpVtbl *IOleInPlaceSiteVtbl
}
type IOleInPlaceSiteVtbl ¶
type IOleInPlaceSiteVtbl struct {
QueryInterface uintptr
AddRef uintptr
Release uintptr
GetWindow uintptr
ContextSensitiveHelp uintptr
CanInPlaceActivate uintptr
OnInPlaceActivate uintptr
OnUIActivate uintptr
GetWindowContext uintptr
Scroll uintptr
OnUIDeactivate uintptr
OnInPlaceDeactivate uintptr
DiscardUndoState uintptr
DeactivateAndUndo uintptr
OnPosRectChange uintptr
}
type IOleObject ¶
type IOleObject struct {
LpVtbl *IOleObjectVtbl
}
func (*IOleObject) QueryInterface ¶
func (*IOleObject) Release ¶
func (obj *IOleObject) Release() uint32
func (*IOleObject) SetClientSite ¶
func (obj *IOleObject) SetClientSite(pClientSite *IOleClientSite) win.HRESULT
func (*IOleObject) SetHostNames ¶
func (obj *IOleObject) SetHostNames(szContainerApp, szContainerObj *uint16) win.HRESULT
type IOleObjectVtbl ¶
type IOleObjectVtbl struct {
QueryInterface uintptr
AddRef uintptr
Release uintptr
SetClientSite uintptr
GetClientSite uintptr
SetHostNames uintptr
Close uintptr
SetMoniker uintptr
GetMoniker uintptr
InitFromData uintptr
GetClipboardData uintptr
DoVerb uintptr
EnumVerbs uintptr
Update uintptr
IsUpToDate uintptr
GetUserClassID uintptr
GetUserType uintptr
SetExtent uintptr
GetExtent uintptr
Advise uintptr
Unadvise uintptr
EnumAdvise uintptr
GetMiscStatus uintptr
SetColorScheme uintptr
}
type IUnknown ¶
type IUnknown struct {
LpVtbl *IUnknownVtbl
}
type IUnknownVtbl ¶
type OLEINPLACEFRAMEINFO ¶
Click to show internal directories.
Click to hide internal directories.