예제 #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));
 }