Source code of Windows XP (NT5)
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.

60 lines
1.3 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 "_RDSTR"
  9. #define WSZNMSTORE L"_RDSTR"
  10. // Magic constant in user properties
  11. #define NMMKCERT_MAGIC 0x2389ABD0
  12. // RDN name of issuing root cert...
  13. #define SZ_NMROOTNAME TEXT("Remote Desktop 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("RDMKCERT.DLL")
  22. // Prototype typedef
  23. typedef DWORD (WINAPI *PFN_NMMAKECERT)(LPCSTR, LPCSTR, LPCSTR, LPCSTR, LPCSTR, DWORD);
  24. // Loadlibrary constant
  25. #define SZ_NMMAKECERTFUNC "RDMakeCert"
  26. // Static prototype
  27. extern
  28. DWORD
  29. WINAPI
  30. NmMakeCert (
  31. LPCSTR szFirstName,
  32. LPCSTR szLastName,
  33. LPCSTR szEmailName,
  34. LPCSTR szCity,
  35. LPCSTR szCountry,
  36. DWORD dwFlags );
  37. extern
  38. void
  39. CALLBACK
  40. NmMakeCertCleanup (
  41. HWND hwnd,
  42. HINSTANCE hinst,
  43. LPSTR lpszCmdLine,
  44. int nCmdShow );
  45. #endif // _NMMKCERT_