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.

59 lines
1.3 KiB

  1. #ifndef _SIGNER_GLOBAL_HXX
  2. #define _SIGNER_GLOBAL_HXX
  3. //+-------------------------------------------------------------------------
  4. //
  5. // Microsoft Windows
  6. //
  7. // Copyright (C) Microsoft Corporation, 1996 - 1999
  8. //
  9. // File: global.hxx
  10. //
  11. // Contents: Top level internal header file
  12. //
  13. // Contains the pre-compiled type information
  14. //
  15. //
  16. //--------------------------------------------------------------------------
  17. #include <windows.h>
  18. #include <wtypes.h>
  19. #include <wincrypt.h>
  20. #include <malloc.h>
  21. #include <conio.h>
  22. #include <winver.h>
  23. #include <winnls.h>
  24. #include "wincrypt.h"
  25. #include "wintrust.h"
  26. #include "wintrustp.h"
  27. #include "softpub.h"
  28. #include "unicode.h"
  29. #include "sipbase.h"
  30. #include "sipguids.h"
  31. #include "mssip.h"
  32. #include "spcmem.h"
  33. #include "signer.h"
  34. #include "signhlp.h"
  35. #include "pvkhlpr.h"
  36. #include "httptran.hxx"
  37. #include "resource.h"
  38. //Global data
  39. extern HINSTANCE hInstance;
  40. // Helper defnitions
  41. #define WIDEN(sz,wsz) \
  42. int cch##wsz = sz ? strlen(sz) + 1 : 0; \
  43. int cb##wsz = cch##wsz * sizeof(WCHAR); \
  44. LPWSTR wsz = sz ? (LPWSTR)_alloca(cb##wsz) : NULL; \
  45. if (wsz) MultiByteToWideChar(CP_ACP,0,sz,-1,wsz,cch##wsz)
  46. #define ZERO(x) ZeroMemory(&x, sizeof(x))
  47. #pragma hdrstop
  48. #endif