Win32 API 日本語リファレンス
ホームSecurity.Credentials › CRED_PROTECTION_TYPE

CRED_PROTECTION_TYPE

列挙型
基底型i4

メンバー 4

名前10進16進説明
CredUnprotected00x0資格情報は暗号化されません。
CredUserProtection10x1資格情報は暗号化され、暗号化されたときのセキュリティ コンテキスト、または信頼されたコンポーネントのセキュリティ コンテキストでのみ復号化できます。
CredTrustedProtection20x2資格情報は暗号化され、信頼されたコンポーネントによってのみ復号化できます。
CredForSystemProtection30x3

公式ドキュメント

CRED_PROTECTION_TYPE 列挙型は、CredProtect 関数を使用して資格情報を暗号化する際のセキュリティ コンテキストを指定します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum CRED_PROTECTION_TYPE : int {
    CredUnprotected = 0,
    CredUserProtection = 1,
    CredTrustedProtection = 2,
    CredForSystemProtection = 3
} CRED_PROTECTION_TYPE;
public enum CRED_PROTECTION_TYPE : int
{
    CredUnprotected = 0,
    CredUserProtection = 1,
    CredTrustedProtection = 2,
    CredForSystemProtection = 3,
}
Public Enum CRED_PROTECTION_TYPE As Integer
    CredUnprotected = 0
    CredUserProtection = 1
    CredTrustedProtection = 2
    CredForSystemProtection = 3
End Enum
import enum

class CRED_PROTECTION_TYPE(enum.IntEnum):
    CredUnprotected = 0
    CredUserProtection = 1
    CredTrustedProtection = 2
    CredForSystemProtection = 3
// CRED_PROTECTION_TYPE
pub const CredUnprotected: i32 = 0;
pub const CredUserProtection: i32 = 1;
pub const CredTrustedProtection: i32 = 2;
pub const CredForSystemProtection: i32 = 3;
// CRED_PROTECTION_TYPE
const (
	CredUnprotected int32 = 0
	CredUserProtection int32 = 1
	CredTrustedProtection int32 = 2
	CredForSystemProtection int32 = 3
)
const
  CredUnprotected = 0;
  CredUserProtection = 1;
  CredTrustedProtection = 2;
  CredForSystemProtection = 3;
// CRED_PROTECTION_TYPE
pub const CredUnprotected: i32 = 0;
pub const CredUserProtection: i32 = 1;
pub const CredTrustedProtection: i32 = 2;
pub const CredForSystemProtection: i32 = 3;
const
  CredUnprotected* = 0
  CredUserProtection* = 1
  CredTrustedProtection* = 2
  CredForSystemProtection* = 3
enum CRED_PROTECTION_TYPE : int {
    CredUnprotected = 0,
    CredUserProtection = 1,
    CredTrustedProtection = 2,
    CredForSystemProtection = 3,
}
#define global CredUnprotected         0x0
#define global CredUserProtection      0x1
#define global CredTrustedProtection   0x2
#define global CredForSystemProtection 0x3