#includes and #defines

All of the examples in the Cryptography SDK documentation are assumed to have the following #include and #define compiler directives.

#include <stdio.h>
#include <windows.h>
#include <Wincrypt.h>
#define MY_ENCODING_TYPE  (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)

Additionally, the _WIN32_WINNT constant must be appropriately defined. For more information about _WIN32_WINNT, see Using the Windows Headers.