In WinTrust.cs, the CRYPT_PROVIDER_DATA structure duplicates CRYPT_PROVUI_DATA.
What code is involved
CRYPT_PROVUI_DATA:
[PInvokeData("wintrust.h", MSDNShortId = "86f819f0-c243-45ba-8b7b-97ed906e6e8a")]
public struct CRYPT_PROVUI_DATA
{
//
// Summary:
// The size, in bytes, of this structure.
public uint cbStruct;
//
// Summary:
// Error code, if applicable.
public Win32Error dwFinalError;
//
// Summary:
// A pointer to a null-terminated string for the Yes button text. If this parameter
// is NULL, then "&Yes" is used.
public StrPtrUni pYesButtonText;
...
CRYPT_PROVIDER_DATA:
[PInvokeData("wintrust.h", MSDNShortId = "86f819f0-c243-45ba-8b7b-97ed906e6e8a")]
public struct CRYPT_PROVIDER_DATA
{
//
// Summary:
// The size, in bytes, of this structure.
public uint cbStruct;
//
// Summary:
// Error code, if applicable.
public uint dwFinalError;
//
// Summary:
// A pointer to a null-terminated string for the Yes button text. If this parameter
// is NULL, then "&Yes" is used.
[MarshalAs(UnmanagedType.LPWStr)]
public string pYesButtonText;
...
Expected behavior
CRYPT_PROVIDER_DATA should be defined (shortened for brevity):
In WinTrust.cs, the
CRYPT_PROVIDER_DATA
structure duplicates CRYPT_PROVUI_DATA.What code is involved
CRYPT_PROVUI_DATA:
CRYPT_PROVIDER_DATA:
Expected behavior
CRYPT_PROVIDER_DATA should be defined (shortened for brevity):