コード例 #1
0
ファイル: NativeMethods.cs プロジェクト: yoozaki/UsbInfo
 internal static void ThrowIfNotCrSuccess(PnpConfigrationResult result)
 {
     if (result != PnpConfigrationResult.CR_SUCCESS)
     {
         throw new PnpConfigrationException(result);
     }
 }
コード例 #2
0
 public PnpConfigrationException(PnpConfigrationResult result)
 {
     PnpConfigrationResult = result;
 }