コンストラクターです。
CSid( ) throw( );
CSid(
const SID & rhs
) throw(...);
CSid(
const CSid & rhs
) throw(...);
CSid(
const SID_IDENTIFIER_AUTHORITY & IdentifierAuthority,
BYTE nSubAuthorityCount,
...
) throw(...);
explicit CSid(
LPCTSTR pszAccountName,
LPCTSTR pszSystem = NULL
) throw(...);
explicit CSid(
const SID * pSid,
LPCTSTR pszSystem = NULL
) throw(...);
パラメーター
rhs
既存の CSid オブジェクトまたはセキュリティ識別子 (SID**:** Security Identifier) 構造体。IdentifierAuthority
証明機関。nSubAuthorityCount
副機関の数。pszAccountName
アカウントの名前。pszSystem
システムの名前。 この文字列には、リモート コンピューターの名前を指定できます。 この文字列が NULL のときは、代わりにローカル システムが使用されます。pSid
SID 構造体へのポインター。
解説
SidTypeInvalid に内部データ メンバーを設定するか、既存の CSid、SID、または既存のアカウントから設定をコピーして、CSid オブジェクトを初期化します。
初期化に失敗した場合は、CAtlException クラス をスローします。
必要条件
**ヘッダー:**atlsecurity.h