MCPcopy Index your code
hub / github.com/ebitengine/oto / _CoCreateInstance

Function _CoCreateInstance

api_wasapi_windows.go:182–191  ·  view source on GitHub ↗
(rclsid *windows.GUID, pUnkOuter unsafe.Pointer, dwClsContext uint32, riid *windows.GUID)

Source from the content-addressed store, hash-verified

180}
181
182func _CoCreateInstance(rclsid *windows.GUID, pUnkOuter unsafe.Pointer, dwClsContext uint32, riid *windows.GUID) (unsafe.Pointer, error) {
183 var v unsafe.Pointer
184 r, _, _ := procCoCreateInstance.Call(uintptr(unsafe.Pointer(rclsid)), uintptr(pUnkOuter), uintptr(dwClsContext), uintptr(unsafe.Pointer(riid)), uintptr(unsafe.Pointer(&v)))
185 runtime.KeepAlive(rclsid)
186 runtime.KeepAlive(riid)
187 if uint32(r) != uint32(windows.S_OK) {
188 return nil, fmt.Errorf("oto: CoCreateInstance failed: HRESULT(%d)", uint32(r))
189 }
190 return v, nil
191}
192
193type _IAudioClient2 struct {
194 vtbl *_IAudioClient2_Vtbl

Callers 1

startOnCOMThreadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…