ホーム › Devices.Usb › USB_USER_ERROR_CODE
USB_USER_ERROR_CODE
列挙型メンバー 11
| 名前 | 10進 | 16進 | 説明 |
|---|---|---|---|
| UsbUserSuccess | 0 | 0x0 | ユーザー要求は成功しました。 |
| UsbUserNotSupported | 1 | 0x1 | ユーザー要求はサポートされていませんでした。 |
| UsbUserInvalidRequestCode | 2 | 0x2 | ユーザー要求コードが無効でした。 |
| UsbUserFeatureDisabled | 3 | 0x3 | ユーザー要求で指定された機能が無効になっています。 |
| UsbUserInvalidHeaderParameter | 4 | 0x4 | ユーザー要求に無効なヘッダーパラメーターが含まれています。 |
| UsbUserInvalidParameter | 5 | 0x5 | ユーザー要求に無効なパラメーターが含まれています。 |
| UsbUserMiniportError | 6 | 0x6 | ミニポートドライバーのエラーが原因でユーザー要求が失敗しました。 |
| UsbUserBufferTooSmall | 7 | 0x7 | データバッファーが小さすぎたため、ユーザー要求が失敗しました。 |
| UsbUserErrorNotMapped | 8 | 0x8 | USB スタックは、この列挙型に列挙されているエラーのいずれかにそのエラーをマップできませんでした。 |
| UsbUserDeviceNotStarted | 9 | 0x9 | デバイスが開始されていませんでした。 |
| UsbUserNoDeviceConnected | 10 | 0xA | デバイスが接続されていませんでした。 |
公式ドキュメント
USB_USER_ERROR_CODE 列挙型は、USB ユーザーモード要求が失敗したときに報告されるエラーコードを列挙します。
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
各言語での定義
列挙メンバーの定義。HSP タブは #define global(値は16進)。
typedef enum USB_USER_ERROR_CODE : int {
UsbUserSuccess = 0,
UsbUserNotSupported = 1,
UsbUserInvalidRequestCode = 2,
UsbUserFeatureDisabled = 3,
UsbUserInvalidHeaderParameter = 4,
UsbUserInvalidParameter = 5,
UsbUserMiniportError = 6,
UsbUserBufferTooSmall = 7,
UsbUserErrorNotMapped = 8,
UsbUserDeviceNotStarted = 9,
UsbUserNoDeviceConnected = 10
} USB_USER_ERROR_CODE;public enum USB_USER_ERROR_CODE : int
{
UsbUserSuccess = 0,
UsbUserNotSupported = 1,
UsbUserInvalidRequestCode = 2,
UsbUserFeatureDisabled = 3,
UsbUserInvalidHeaderParameter = 4,
UsbUserInvalidParameter = 5,
UsbUserMiniportError = 6,
UsbUserBufferTooSmall = 7,
UsbUserErrorNotMapped = 8,
UsbUserDeviceNotStarted = 9,
UsbUserNoDeviceConnected = 10,
}Public Enum USB_USER_ERROR_CODE As Integer
UsbUserSuccess = 0
UsbUserNotSupported = 1
UsbUserInvalidRequestCode = 2
UsbUserFeatureDisabled = 3
UsbUserInvalidHeaderParameter = 4
UsbUserInvalidParameter = 5
UsbUserMiniportError = 6
UsbUserBufferTooSmall = 7
UsbUserErrorNotMapped = 8
UsbUserDeviceNotStarted = 9
UsbUserNoDeviceConnected = 10
End Enumimport enum
class USB_USER_ERROR_CODE(enum.IntEnum):
UsbUserSuccess = 0
UsbUserNotSupported = 1
UsbUserInvalidRequestCode = 2
UsbUserFeatureDisabled = 3
UsbUserInvalidHeaderParameter = 4
UsbUserInvalidParameter = 5
UsbUserMiniportError = 6
UsbUserBufferTooSmall = 7
UsbUserErrorNotMapped = 8
UsbUserDeviceNotStarted = 9
UsbUserNoDeviceConnected = 10// USB_USER_ERROR_CODE
pub const UsbUserSuccess: i32 = 0;
pub const UsbUserNotSupported: i32 = 1;
pub const UsbUserInvalidRequestCode: i32 = 2;
pub const UsbUserFeatureDisabled: i32 = 3;
pub const UsbUserInvalidHeaderParameter: i32 = 4;
pub const UsbUserInvalidParameter: i32 = 5;
pub const UsbUserMiniportError: i32 = 6;
pub const UsbUserBufferTooSmall: i32 = 7;
pub const UsbUserErrorNotMapped: i32 = 8;
pub const UsbUserDeviceNotStarted: i32 = 9;
pub const UsbUserNoDeviceConnected: i32 = 10;// USB_USER_ERROR_CODE
const (
UsbUserSuccess int32 = 0
UsbUserNotSupported int32 = 1
UsbUserInvalidRequestCode int32 = 2
UsbUserFeatureDisabled int32 = 3
UsbUserInvalidHeaderParameter int32 = 4
UsbUserInvalidParameter int32 = 5
UsbUserMiniportError int32 = 6
UsbUserBufferTooSmall int32 = 7
UsbUserErrorNotMapped int32 = 8
UsbUserDeviceNotStarted int32 = 9
UsbUserNoDeviceConnected int32 = 10
)const
UsbUserSuccess = 0;
UsbUserNotSupported = 1;
UsbUserInvalidRequestCode = 2;
UsbUserFeatureDisabled = 3;
UsbUserInvalidHeaderParameter = 4;
UsbUserInvalidParameter = 5;
UsbUserMiniportError = 6;
UsbUserBufferTooSmall = 7;
UsbUserErrorNotMapped = 8;
UsbUserDeviceNotStarted = 9;
UsbUserNoDeviceConnected = 10;// USB_USER_ERROR_CODE
pub const UsbUserSuccess: i32 = 0;
pub const UsbUserNotSupported: i32 = 1;
pub const UsbUserInvalidRequestCode: i32 = 2;
pub const UsbUserFeatureDisabled: i32 = 3;
pub const UsbUserInvalidHeaderParameter: i32 = 4;
pub const UsbUserInvalidParameter: i32 = 5;
pub const UsbUserMiniportError: i32 = 6;
pub const UsbUserBufferTooSmall: i32 = 7;
pub const UsbUserErrorNotMapped: i32 = 8;
pub const UsbUserDeviceNotStarted: i32 = 9;
pub const UsbUserNoDeviceConnected: i32 = 10;const
UsbUserSuccess* = 0
UsbUserNotSupported* = 1
UsbUserInvalidRequestCode* = 2
UsbUserFeatureDisabled* = 3
UsbUserInvalidHeaderParameter* = 4
UsbUserInvalidParameter* = 5
UsbUserMiniportError* = 6
UsbUserBufferTooSmall* = 7
UsbUserErrorNotMapped* = 8
UsbUserDeviceNotStarted* = 9
UsbUserNoDeviceConnected* = 10enum USB_USER_ERROR_CODE : int {
UsbUserSuccess = 0,
UsbUserNotSupported = 1,
UsbUserInvalidRequestCode = 2,
UsbUserFeatureDisabled = 3,
UsbUserInvalidHeaderParameter = 4,
UsbUserInvalidParameter = 5,
UsbUserMiniportError = 6,
UsbUserBufferTooSmall = 7,
UsbUserErrorNotMapped = 8,
UsbUserDeviceNotStarted = 9,
UsbUserNoDeviceConnected = 10,
}#define global UsbUserSuccess 0x0
#define global UsbUserNotSupported 0x1
#define global UsbUserInvalidRequestCode 0x2
#define global UsbUserFeatureDisabled 0x3
#define global UsbUserInvalidHeaderParameter 0x4
#define global UsbUserInvalidParameter 0x5
#define global UsbUserMiniportError 0x6
#define global UsbUserBufferTooSmall 0x7
#define global UsbUserErrorNotMapped 0x8
#define global UsbUserDeviceNotStarted 0x9
#define global UsbUserNoDeviceConnected 0xA