windows-nt/Source/XPSP1/NT/enduser/netmeeting/h/nmmkcert.h
2020-09-26 16:20:57 +08:00

48 lines
1.1 KiB
C

#ifndef _NMMKCERT_
#define _NMMKCERT_
// Flags
#define NMMKCERT_F_DELETEOLDCERT 0x00000001
#define NMMKCERT_F_LOCAL_MACHINE 0x00000002
#define NMMKCERT_F_CLEANUP_ONLY 0x00000004
// NetMeeting certificate store
#define SZNMSTORE "_NMSTR"
#define WSZNMSTORE L"_NMSTR"
// Magic constant in user properties
#define NMMKCERT_MAGIC 0x2389ABD0
// RDN name of issuing root cert...
#define SZ_NMROOTNAME TEXT("NetMeeting Root")
// When issuer obtained using these flags
#ifndef CERT_NAME_STR_REVERSE_FLAG
#define CERT_NAME_STR_REVERSE_FLAG 0x02000000
#endif // CERT_NAME_STR_REVERSE_FLAG
#define CERT_FORMAT_FLAGS (CERT_SIMPLE_NAME_STR|CERT_NAME_STR_NO_PLUS_FLAG|\
CERT_NAME_STR_REVERSE_FLAG)
// Library Name
#define SZ_NMMKCERTLIB TEXT("NMMKCERT.DLL")
// Prototype typedef
typedef DWORD (WINAPI *PFN_NMMAKECERT)(LPCSTR, LPCSTR, LPCSTR, LPCSTR, LPCSTR, DWORD);
// Loadlibrary constant
#define SZ_NMMAKECERTFUNC "NmMakeCert"
// Static prototype
extern DWORD WINAPI NmMakeCert (LPCSTR szFirstName,
LPCSTR szLastName,
LPCSTR szEmailName,
LPCSTR szCity,
LPCSTR szCountry,
DWORD dwFlags );
#endif // _NMMKCERT_