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.

88 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: global.hxx
  8. //
  9. // Contents: WinVerifyTrust Stress
  10. //
  11. // History: 12-Aug-1997 pberkman created
  12. //
  13. //--------------------------------------------------------------------------
  14. #define STRICT
  15. #define NO_ANSIUNI_ONLY
  16. #include <afxdisp.h>
  17. #include <wincrypt.h>
  18. #include <string.h>
  19. #include <malloc.h>
  20. #include <memory.h>
  21. #include <stdlib.h>
  22. #include <stddef.h>
  23. #include <stdio.h>
  24. #include <wchar.h>
  25. #include <tchar.h>
  26. #include <time.h>
  27. #include <shellapi.h>
  28. #include <dbgdef.h>
  29. #include <unicode.h>
  30. #include <wintrust.h>
  31. #include <softpub.h>
  32. #include <mscat.h>
  33. #include "gendefs.h"
  34. #include "cwargv.hxx"
  35. #include "stack.hxx"
  36. #include "fparse.hxx"
  37. #include "resource.h"
  38. typedef struct ThreadData_
  39. {
  40. HANDLE hThread;
  41. DWORD dwId;
  42. DWORD dwRetCode;
  43. DWORD dwTotalProcessed;
  44. COleDateTimeSpan tsTotal;
  45. DWORD dwPassThrough;
  46. } ThreadData;
  47. #define PASSTHROUGH_SHA1 0x00010000
  48. typedef DWORD (*PFN_TEST)(ThreadData *psData);
  49. typedef struct WVTLOOPDATA_
  50. {
  51. WCHAR *pwszFileName;
  52. GUID *pgProvider;
  53. WCHAR *pwszCatalogFile;
  54. WCHAR *pwszTag;
  55. DWORD dwStateControl;
  56. } WVTLOOPDATA;
  57. extern DWORD WINAPI TestWVTCat(ThreadData *psData);
  58. extern DWORD WINAPI TestWVTCert(ThreadData *psData);
  59. extern DWORD WINAPI TestWVTFile(ThreadData *psData);
  60. extern DWORD WINAPI TestCatAdd(ThreadData *psData);
  61. extern DWORD WINAPI TestCryptHash(ThreadData *psData);
  62. extern GUID gAuthCode;
  63. extern GUID gDriver;
  64. extern GUID gCertProvider;
  65. extern BOOL fVerbose;
  66. extern DWORD cPasses;
  67. extern WCHAR *pwszInFile;
  68. #pragma hdrstop