WinAPI クラス
Windows API を簡単に呼び出します。 動的関数ではなく静的関数を利用してください。 このクラスは継承できません。
継承
System.Object
    WinAPI
  継承されたメンバー
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  名前空間: ExapisSOP.NativeWrapper
アセンブリ: ExapisSOP.NativeWrapper.Windows.dll
構文
public sealed class WinAPI : INativeCaller
  フィールド 一覧
| 編集/提案 ソースを表示Instance
既定のインスタンスを取得します。
宣言
public static readonly INativeCaller Instance
  フィールド値
| 型 | 説明 | 
|---|---|
| INativeCaller | 
メソッド 一覧
| 編集/提案 ソースを表示GetErrorMessage()
前回発生したエラーの翻訳されたエラーメッセージを取得します。
宣言
public static string GetErrorMessage()
  戻り値
| 型 | 説明 | 
|---|---|
| System.String | エラーメッセージを表す文字列です。  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.PlatformNotSupportedException | 
GetErrorMessage(Int32)
指定したエラーコードの翻訳されたエラーメッセージを取得します。
宣言
public static string GetErrorMessage(int hResult)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.Int32 | hResult | エラーコードです。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| System.String | エラーメッセージを表す文字列です。  | 
      
例外
| 型 | 条件 | 
|---|---|
| System.PlatformNotSupportedException | 
IsSupported()
Windows API の呼び出しが実行できる環境かどうか判定します。
宣言
public static bool IsSupported()
  戻り値
| 型 | 説明 | 
|---|---|
| System.Boolean | サポートされる場合はtrue、それ以外の場合はfalseを返します。  | 
      
IsSupported(out PlatformNotSupportedException)
Windows API の呼び出しが実行できる環境かどうか判定します。
宣言
public bool IsSupported(out PlatformNotSupportedException reason)
  引数
| 型 | 名前 | 説明 | 
|---|---|---|
| System.PlatformNotSupportedException | reason | サポートされない場合、その理由を表す例外オブジェクトを返します。  | 
      
戻り値
| 型 | 説明 | 
|---|---|
| System.Boolean | サポートされる場合はtrue、それ以外の場合はfalseを返します。  |