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.

105 lines
2.4 KiB

  1. //--------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation, 1996 - 1999
  3. //
  4. // File: private.h
  5. //
  6. // Contents: The private include file for cryptext.dll.
  7. //
  8. // History: 16-09-1997 xiaohs created
  9. //
  10. //--------------------------------------------------------------
  11. #ifndef PRIVATE_H
  12. #define PRIVATE_H
  13. #include <windows.h>
  14. #include <shellapi.h>
  15. #include <shlobj.h>
  16. #include <string.h>
  17. #include <winreg.h>
  18. #include <objbase.h>
  19. #include "stdio.h"
  20. #include "wincrypt.h"
  21. #include "wintrust.h"
  22. #include "sipbase.h"
  23. #include "mssip.h"
  24. #include "unicode.h"
  25. #include "crtem.h"
  26. #include "cryptui.h"
  27. #include "mscat.h"
  28. #include "resource.h"
  29. //Macro to convert a short to a HRESULT
  30. #define ResultFromShort(i) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i)))
  31. //global data
  32. extern HINSTANCE g_hmodThisDll;
  33. #define MAX_STRING_SIZE 256
  34. #define MAX_COMMAND_LENGTH 40
  35. #define MAX_TITLE_LENGTH 60
  36. #define MAX_FILE_NAME_LENGTH 60
  37. #define MMC_NAME L"mmc.exe"
  38. #define CERTMGR_MSC L"\\certmgr.msc"
  39. //function prototypes
  40. HRESULT UnregisterMimeHandler();
  41. HRESULT RegisterMimeHandler();
  42. BOOL PKCS7WithSignature(HCRYPTMSG hMsg);
  43. void I_ViewCTL(PCCTL_CONTEXT pCTLContext);
  44. //void I_ViewSignerInfo(HCRYPTMSG hMsg);
  45. HRESULT RetrieveBLOBFromFile(LPWSTR pwszFileName,DWORD *pcb,BYTE **ppb);
  46. int I_MessageBox(
  47. HWND hWnd,
  48. UINT idsText,
  49. UINT idsCaption,
  50. LPCWSTR pwszCaption,
  51. UINT uType);
  52. int I_NoticeBox(
  53. DWORD dwError,
  54. DWORD dwFlags,
  55. HWND hWnd,
  56. UINT idsTitle,
  57. UINT idsFileName,
  58. UINT idsMsgFormat,
  59. UINT uType);
  60. BOOL IsCatalog(PCCTL_CONTEXT pCTLContext);
  61. void LauchCertMgr(LPWSTR pwszFileName);
  62. //typpe define
  63. typedef struct _MIME_REG_ENTRY{
  64. LPWSTR wszKey;
  65. LPWSTR wszName;
  66. UINT idsName;
  67. }MIME_REG_ENTRY;
  68. typedef struct _WIN95_REG_ENTRY{
  69. LPSTR szKey;
  70. LPSTR szName;
  71. }WIN95_REG_ENTRY;
  72. typedef struct _MIME_GUID_ENTRY{
  73. const CLSID *pGuid;
  74. LPWSTR wszKey1;
  75. LPWSTR wszKey2;
  76. LPWSTR wszKey3;
  77. UINT idsName;
  78. }MIME_GUID_ENTRY;
  79. #endif //PRIVATE_H