oledb

package
v0.0.0-...-d0b12fb Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IID_NULL                      = &GUID{0x00000000, 0x0000, 0x0000, [8]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}
	IID_IDispatch                 = &GUID{0x00020400, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
	IID_IConnectionPointContainer = &GUID{0xB196B284, 0xBAB4, 0x101A, [8]byte{0xB6, 0x9C, 0x00, 0xAA, 0x00, 0x34, 0x1D, 0x07}}
	IID_IConnectionPoint          = &GUID{0xB196B286, 0xBAB4, 0x101A, [8]byte{0xB6, 0x9C, 0x00, 0xAA, 0x00, 0x34, 0x1D, 0x07}}
	IID_IProvideClassInfo         = &GUID{0xb196b283, 0xbab4, 0x101a, [8]byte{0xB6, 0x9C, 0x00, 0xAA, 0x00, 0x34, 0x1D, 0x07}}
)
View Source
var (
	S_OK    = HResult(1)
	S_FALSE = HResult(2)

	E_NOTIMPL     = HResult(0x80004001)
	E_NOINTERFACE = HResult(0x80004002)
	E_POINTER     = HResult(0x80004003)
	E_ABORT       = HResult(0x80004004)
	E_FAIL        = HResult(0x80004005)

	E_OUTOFMEMORY = HResult(0x8007000E)
	E_INVALIDARG  = HResult(0x80070057)

	CO_E_NOTINITIALIZED = HResult(0x800401F0)
)
View Source
var (
	IID_IUnknown = &GUID{0x00000000, 0x0000, 0x0000, [8]byte{0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46}}
)

Functions

func Initialize

func Initialize() error

Types

type ComError

type ComError struct {
	// contains filtered or unexported fields
}

ComError contains details about COM errors.

func (*ComError) Error

func (e *ComError) Error() string

Returns error details as a formatted string

func (*ComError) HResult

func (e *ComError) HResult() HResult

Code returns the COM error code

func (*ComError) MethodName

func (e *ComError) MethodName() string

MethodName returns the name of the method that returned the error

func (*ComError) String

func (e *ComError) String() string

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

type HResult

type HResult uint32

func HResultFromInt

func HResultFromInt(hr int) HResult

func (HResult) ComError

func (hr HResult) ComError(methodName string) *ComError

func (HResult) Error

func (hr HResult) Error() string

func (HResult) Failed

func (hr HResult) Failed() bool

func (HResult) String

func (hr HResult) String() string

func (HResult) Succeeded

func (hr HResult) Succeeded() bool

type IDBInitialize

type IDBInitialize struct {
	// contains filtered or unexported fields
}

func CreateDBInitialize

func CreateDBInitialize(progId string) (*IDBInitialize, error)

func (*IDBInitialize) AddRef

func (dbi *IDBInitialize) AddRef()

func (*IDBInitialize) Initialize

func (dbi *IDBInitialize) Initialize() error

func (*IDBInitialize) QueryDBProperties

func (dbi *IDBInitialize) QueryDBProperties() (*IDBProperties, error)

func (*IDBInitialize) Release

func (dbi *IDBInitialize) Release()

func (*IDBInitialize) Uninitialize

func (dbi *IDBInitialize) Uninitialize() error

func (*IDBInitialize) Unknown

func (dbi *IDBInitialize) Unknown() *IUnknown

type IDBProperties

type IDBProperties struct {
	// contains filtered or unexported fields
}

func (*IDBProperties) AddRef

func (dbi *IDBProperties) AddRef()

func (*IDBProperties) GetProperties

func (dbi *IDBProperties) GetProperties() error

func (*IDBProperties) GetPropertyInfo

func (dbi *IDBProperties) GetPropertyInfo() error

func (*IDBProperties) Release

func (dbi *IDBProperties) Release()

func (*IDBProperties) SetProperties

func (dbi *IDBProperties) SetProperties() error

func (*IDBProperties) Unknown

func (dbi *IDBProperties) Unknown() *IUnknown

type IUnknown

type IUnknown struct {
	// contains filtered or unexported fields
}

func (*IUnknown) AddRef

func (unk *IUnknown) AddRef()

func (*IUnknown) QueryIUnknown

func (unk *IUnknown) QueryIUnknown() (*IUnknown, error)

QueryUnknown returns a pointer to the base *IUnknown pointer for this COM object. Querying for the IUnknown interface is useful when trying to verify if two COM pointers refer to the same COM object.

func (*IUnknown) QueryInterface

func (unk *IUnknown) QueryInterface(iid *GUID) (ptr unsafe.Pointer, err error)

func (*IUnknown) Release

func (unk *IUnknown) Release()

Jump to

Keyboard shortcuts

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