github.com/hspan/go-ole@v0.0.0/iprovideclassinfo.go (about)

     1  package ole
     2  
     3  import "unsafe"
     4  
     5  type IProvideClassInfo struct {
     6  	IUnknown
     7  }
     8  
     9  type IProvideClassInfoVtbl struct {
    10  	IUnknownVtbl
    11  	GetClassInfo uintptr
    12  }
    13  
    14  func (v *IProvideClassInfo) VTable() *IProvideClassInfoVtbl {
    15  	return (*IProvideClassInfoVtbl)(unsafe.Pointer(v.RawVTable))
    16  }
    17  
    18  func (v *IProvideClassInfo) GetClassInfo() (cinfo *ITypeInfo, err error) {
    19  	cinfo, err = getClassInfo(v)
    20  	return
    21  }