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.

96 lines
3.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: offsng32.h
  8. //
  9. // Contents: Microsoft Internet Security Office Helper
  10. //
  11. // History: 14-Aug-1997 pberkman created
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef OFFSNG32_H
  15. #define OFFSNG32_H
  16. #ifdef __cplusplus
  17. extern "C"
  18. {
  19. #endif
  20. //////////////////////////////////////////////////////////////////////////////
  21. //
  22. // OFFICESIGN_ACTION_VERIFY Guid (Authenticode add-on)
  23. //----------------------------------------------------------------------------
  24. // Assigned to the pgActionID parameter of WinVerifyTrust to verify the
  25. // authenticity of a Structured Storage file using the Microsoft Office
  26. // Authenticode add-on Policy Provider,
  27. //
  28. // {5555C2CD-17FB-11d1-85C4-00C04FC295EE}
  29. //
  30. #define OFFICESIGN_ACTION_VERIFY \
  31. { 0x5555c2cd, \
  32. 0x17fb, \
  33. 0x11d1, \
  34. { 0x85, 0xc4, 0x0, 0xc0, 0x4f, 0xc2, 0x95, 0xee } \
  35. }
  36. #define OFFICE_POLICY_PROVIDER_DLL_NAME L"OFFSGN32.DLL"
  37. #define OFFICE_INITPROV_FUNCTION L"OfficeInitializePolicy"
  38. #define OFFICE_CLEANUPPOLICY_FUNCTION L"OfficeCleanupPolicy"
  39. //////////////////////////////////////////////////////////////////////////////
  40. //
  41. // CryptOfficeSign
  42. //----------------------------------------------------------------------------
  43. // Digitally signs the file. The user will be prompted for signing
  44. // certificate.
  45. //
  46. // Returns:
  47. // TRUE: No fatal errors
  48. // FALSE: Errors occured. See GetLastError()
  49. //
  50. // Last Errors:
  51. // ERROR_INVALID_PARAMETER: bad argument passed in (the user will NOT be shown UI)
  52. //
  53. extern BOOL WINAPI CryptOfficeSignW(HWND hWndCaller, WCHAR *pwszFile);
  54. extern BOOL WINAPI CryptOfficeSignA(HWND hWndCaller, char *pszFile);
  55. //////////////////////////////////////////////////////////////////////////////
  56. //
  57. // CryptOfficeVerify
  58. //----------------------------------------------------------------------------
  59. // Digitally verifies the file. The user will be presented UI if
  60. // applicable.
  61. //
  62. // Returns:
  63. // TRUE: No fatal errors
  64. // FALSE: Errors occured. See GetLastError()
  65. //
  66. // Last Errors:
  67. // ERROR_INVALID_PARAMETER: bad argument passed in (the user will NOT be shown UI).
  68. //
  69. extern BOOL WINAPI CryptOfficeVerifyW(HWND hWndCaller, WCHAR *pwszFile);
  70. extern BOOL WINAPI CryptOfficeVerifyA(HWND hWndCaller, char *pszFile);
  71. #ifdef UNICODE
  72. # define CryptOfficeSign CryptOfficeSignW
  73. # define CryptOfficeVerify CryptOfficeVerifyW
  74. #else
  75. # define CryptOfficeSign CryptOfficeSignA
  76. # define CryptOfficeVerify CryptOfficeVerifyA
  77. #endif // UNICODE
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81. #endif // OFFSNG32_H