MCPcopy
hub / github.com/ebitengine/oto / Activate

Method Activate

api_wasapi_windows.go:423–433  ·  view source on GitHub ↗
(iid *windows.GUID, dwClsCtx uint32, pActivationParams *_PROPVARIANT)

Source from the content-addressed store, hash-verified

421}
422
423func (i *_IMMDevice) Activate(iid *windows.GUID, dwClsCtx uint32, pActivationParams *_PROPVARIANT) (unsafe.Pointer, error) {
424 var v unsafe.Pointer
425 r, _, _ := syscall.Syscall6(i.vtbl.Activate, 5, uintptr(unsafe.Pointer(i)),
426 uintptr(unsafe.Pointer(iid)), uintptr(dwClsCtx), uintptr(unsafe.Pointer(pActivationParams)), uintptr(unsafe.Pointer(&v)), 0)
427 runtime.KeepAlive(iid)
428 runtime.KeepAlive(pActivationParams)
429 if uint32(r) != uint32(windows.S_OK) {
430 return nil, fmt.Errorf("oto: IMMDevice::Activate failed: HRESULT(%d)", uint32(r))
431 }
432 return v, nil
433}
434
435func (i *_IMMDevice) GetId() (string, error) {
436 var strId *uint16

Callers 1

startOnCOMThreadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected