コード例 #1
0
 private static extern bool UsbK_SetPowerPolicy(KUSB_HANDLE InterfaceHandle,
                                                [MarshalAs(UnmanagedType.U4)] UsbKPowerPolicy PolicyType, uint ValueLength,
                                                IntPtr Value);
コード例 #2
0
 private bool SetPowerPolicy(KUSB_HANDLE InterfaceHandle, UsbKPowerPolicy PolicyType, uint ValueLength,
                             IntPtr Value)
 {
     return(UsbK_SetPowerPolicy(InterfaceHandle, PolicyType, ValueLength, Value));
 }