Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. #ifndef _NMMKCERT_
  2. #define _NMMKCERT_
  3. // Flags
  4. #define NMMKCERT_F_DELETEOLDCERT 0x00000001
  5. #define NMMKCERT_F_LOCAL_MACHINE 0x00000002
  6. #define NMMKCERT_F_CLEANUP_ONLY 0x00000004
  7. // NetMeeting certificate store
  8. #define SZNMSTORE "_NMSTR"
  9. #define WSZNMSTORE L"_NMSTR"
  10. // Magic constant in user properties
  11. #define NMMKCERT_MAGIC 0x2389ABD0
  12. // RDN name of issuing root cert...
  13. #define SZ_NMROOTNAME TEXT("NetMeeting Root")
  14. // When issuer obtained using these flags
  15. #ifndef CERT_NAME_STR_REVERSE_FLAG
  16. #define CERT_NAME_STR_REVERSE_FLAG 0x02000000
  17. #endif // CERT_NAME_STR_REVERSE_FLAG
  18. #define CERT_FORMAT_FLAGS (CERT_SIMPLE_NAME_STR|CERT_NAME_STR_NO_PLUS_FLAG|\
  19. CERT_NAME_STR_REVERSE_FLAG)
  20. // Library Name
  21. #define SZ_NMMKCERTLIB TEXT("NMMKCERT.DLL")
  22. // Prototype typedef
  23. typedef DWORD (WINAPI *PFN_NMMAKECERT)(LPCSTR, LPCSTR, LPCSTR, LPCSTR, LPCSTR, DWORD);
  24. // Loadlibrary constant
  25. #define SZ_NMMAKECERTFUNC "NmMakeCert"
  26. // Static prototype
  27. extern DWORD WINAPI NmMakeCert (LPCSTR szFirstName,
  28. LPCSTR szLastName,
  29. LPCSTR szEmailName,
  30. LPCSTR szCity,
  31. LPCSTR szCountry,
  32. DWORD dwFlags );
  33. #endif // _NMMKCERT_