CryptGetUserKey

[DllImport("Crypt32.dll", SetLastError = true)]
public static extern bool CryptGetUserKey(
   IntPtr hProv,
   uint dwKeySpec,
   ref IntPtr phUserKey
);

Microsoft documentation: Link

Last updated