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.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: trustcom.h
  8. //
  9. // Contents: Microsoft Internet Security COM interface
  10. //
  11. // History: 14-Aug-1997 pberkman created
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef TRUSTCOM_H
  15. #define TRUSTCOM_H
  16. #ifdef __cplusplus
  17. extern "C"
  18. {
  19. #endif
  20. //////////////////////////////////////////////////////////////////////////////
  21. //
  22. // TrustSign
  23. //----------------------------------------------------------------------------
  24. // Digitally signs the file. The user will be prompted for signing
  25. // certificate.
  26. //
  27. // Returns:
  28. // TRUE: No fatal errors
  29. // FALSE: Errors occured. See GetLastError()
  30. //
  31. // Last Errors:
  32. // ERROR_INVALID_PARAMETER: bad argument passed in (the user will NOT be shown UI)
  33. //
  34. extern BOOL WINAPI TrustSign(HWND hWndCaller, WCHAR *pwszFile);
  35. //////////////////////////////////////////////////////////////////////////////
  36. //
  37. // TrustVerify
  38. //----------------------------------------------------------------------------
  39. // Digitally verifies the file. The user will be presented UI if
  40. // applicable.
  41. //
  42. // Returns:
  43. // TRUE: No fatal errors
  44. // FALSE: Errors occured. See GetLastError()
  45. //
  46. // Last Errors:
  47. // ERROR_INVALID_PARAMETER: bad argument passed in (the user will NOT be shown UI).
  48. //
  49. extern BOOL WINAPI TrustVerify(HWND hWndCaller, WCHAR *pwszFile);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // TRUSTCOM_H