()
| 433 | } |
| 434 | |
| 435 | func (i *_IMMDevice) GetId() (string, error) { |
| 436 | var strId *uint16 |
| 437 | r, _, _ := syscall.Syscall(i.vtbl.GetId, 2, uintptr(unsafe.Pointer(i)), uintptr(unsafe.Pointer(&strId)), 0) |
| 438 | if uint32(r) != uint32(windows.S_OK) { |
| 439 | return "", fmt.Errorf("oto: IMMDevice::GetId failed: HRESULT(%d)", uint32(r)) |
| 440 | } |
| 441 | return windows.UTF16PtrToString(strId), nil |
| 442 | } |
| 443 | |
| 444 | func (i *_IMMDevice) Release() { |
| 445 | syscall.Syscall(i.vtbl.Release, 1, uintptr(unsafe.Pointer(i)), 0, 0) |
no outgoing calls
no test coverage detected