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.

83 lines
3.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: signdll.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _SIGNDLL2_H
  11. #define _SIGNDLL2_H
  12. // SignCode.h : main header file for the SIGNCODE application
  13. //
  14. #include "spc.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. HRESULT WINAPI
  19. SignCode(IN HWND hwnd,
  20. IN LPCWSTR pwszFilename, // file to sign
  21. IN LPCWSTR pwszCapiProvider, // NULL if to use non default CAPI provider
  22. IN DWORD dwProviderType,
  23. IN LPCWSTR pwszPrivKey, // private key file / CAPI key set name
  24. IN LPCWSTR pwszSpc, // the credentials to use in the signing
  25. IN LPCWSTR pwszOpusName, // the name of the program to appear in
  26. // the UI
  27. IN LPCWSTR pwszOpusInfo, // the unparsed name of a link to more
  28. // info...
  29. IN BOOL fIncludeCerts,
  30. IN BOOL fCommercial,
  31. IN BOOL fIndividual,
  32. IN ALG_ID algidHash,
  33. IN PBYTE pbTimeStamp, // Optional
  34. IN DWORD cbTimeStamp ); // Optional
  35. HRESULT WINAPI
  36. TimeStampCode32(IN HWND hwnd,
  37. IN LPCWSTR pwszFilename, // file to sign
  38. IN LPCWSTR pwszCapiProvider, // NULL if to use non default CAPI provider
  39. IN DWORD dwProviderType,
  40. IN LPCWSTR pwszPrivKey, // private key file / CAPI key set name
  41. IN LPCWSTR pwszSpc, // the credentials to use in the signing
  42. IN LPCWSTR pwszOpusName, // the name of the program to appear in the UI
  43. IN LPCWSTR pwszOpusInfo, // the unparsed name of a link to more info...
  44. IN BOOL fIncludeCerts,
  45. IN BOOL fCommercial,
  46. IN BOOL fIndividual,
  47. IN ALG_ID algidHash,
  48. OUT PBYTE pbTimeRequest,
  49. IN OUT DWORD* cbTimeRequest);
  50. HRESULT WINAPI
  51. TimeStampCode(IN HWND hwnd,
  52. IN LPCWSTR pwszFilename, // file to sign
  53. IN LPCWSTR pwszCapiProvider, // NULL if to use non default CAPI provider
  54. IN DWORD dwProviderType,
  55. IN LPCWSTR pwszPrivKey, // private key file / CAPI key set name
  56. IN LPCWSTR pwszSpc, // the credentials to use in the signing
  57. IN LPCWSTR pwszOpusName, // the name of the program to appear in the UI
  58. IN LPCWSTR pwszOpusInfo, // the unparsed name of a link to more info...
  59. IN BOOL fIncludeCerts,
  60. IN BOOL fCommercial,
  61. IN BOOL fIndividual,
  62. IN ALG_ID algidHash,
  63. IN PCRYPT_DATA_BLOB sTimeRequest); // Returns result in sTimeRequest
  64. // By default this will use CoTaskMemAlloc. Use CryptSetMemoryAlloc() to specify a different
  65. // memory model.
  66. //-------------------------------------------------------------------------
  67. // Puts up a signing dialog
  68. HRESULT WINAPI
  69. SignWizard(HWND hwnd);
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif