File tree Expand file tree Collapse file tree
src/Common/src/Interop/Windows/Advapi32 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55using System ;
66using System . Runtime . InteropServices ;
77using System . Security . Cryptography ;
8+ using System . Text ;
89
910internal static partial class Interop
1011{
@@ -20,7 +21,9 @@ internal enum CryptProvParam : int
2021 PP_KEYSET_TYPE = 27 ,
2122 PP_KEYEXCHANGE_PIN = 32 ,
2223 PP_SIGNATURE_PIN = 33 ,
23- PP_UNIQUE_CONTAINER = 36
24+ PP_UNIQUE_CONTAINER = 36 ,
25+ PP_HCRYPTPROV = 109 ,
26+ PP_SELECT_CONTAINER = 110
2427 }
2528
2629 [ DllImport ( Libraries . Advapi32 , SetLastError = true ) ]
@@ -45,6 +48,14 @@ public static extern bool CryptGetProvParam(
4548 ref int dwDataLen ,
4649 int dwFlags ) ;
4750
51+ [ DllImport ( Libraries . Advapi32 , SetLastError = true ) ]
52+ public static extern bool CryptGetProvParam (
53+ SafeHandle safeProvHandle ,
54+ CryptProvParam dwParam ,
55+ [ MarshalAs ( UnmanagedType . LPStr ) ] StringBuilder pbData ,
56+ ref int dwDataLen ,
57+ int dwFlags ) ;
58+
4859 public static bool CryptGetProvParam (
4960 SafeHandle safeProvHandle ,
5061 CryptProvParam dwParam ,
You can’t perform that action at this time.
0 commit comments