AllocateAndInitializeSid
誰かが C# コードから関数を呼び出す完全で実用的な例を教えてもらえますか?
私はこれを見つけました:
BOOL WINAPI AllocateAndInitializeSid(
__in PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
__in BYTE nSubAuthorityCount,
__in DWORD dwSubAuthority0,
__in DWORD dwSubAuthority1,
__in DWORD dwSubAuthority2,
__in DWORD dwSubAuthority3,
__in DWORD dwSubAuthority4,
__in DWORD dwSubAuthority5,
__in DWORD dwSubAuthority6,
__in DWORD dwSubAuthority7,
__out PSID *pSid
);
そして、このメソッドのシグネチャを構築する方法がわかりません -PSID_IDENTIFIER_AUTHORITY
とPSID
型をどうすればよいですか? またはを使用して、それらをどのように渡す必要がありますref
かout
?