Skip to content

Commit e0a365d

Browse files
committed
Fixing build: missing CryptProvParam constants
1 parent 092e499 commit e0a365d

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/Common/src/Interop/Windows/Advapi32/Interop.CryptGetProvParam.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Runtime.InteropServices;
77
using System.Security.Cryptography;
8+
using System.Text;
89

910
internal 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,

0 commit comments

Comments
 (0)