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.

93 lines
3.2 KiB

  1. /****************************************************************************/
  2. // adcgbase.h
  3. //
  4. // Common headers - portable include file. This is the main header which
  5. // should be included by ALL files. It defines common and OS specific types
  6. // and structures as well as including OS-specific headers.
  7. //
  8. // Copyright (C) 1997-1999 Microsoft Corporation
  9. /****************************************************************************/
  10. #ifndef _H_ADCGBASE
  11. #define _H_ADCGBASE
  12. /****************************************************************************/
  13. /* Include basic type definitions. Some of these may be OS-specific and */
  14. /* will be defined via a proxy header. */
  15. /****************************************************************************/
  16. #include <adcgbtyp.h>
  17. /****************************************************************************/
  18. /* Include complex type definitions. Some of these may be OS-specific and */
  19. /* will be defined via a proxy header. */
  20. /****************************************************************************/
  21. #include <adcgctyp.h>
  22. /****************************************************************************/
  23. /* Include constants. */
  24. /****************************************************************************/
  25. #include <adcgcnst.h>
  26. /****************************************************************************/
  27. /* Include macros. */
  28. /****************************************************************************/
  29. #include <adcgmcro.h>
  30. /****************************************************************************/
  31. /* Include C runtime functions. */
  32. /****************************************************************************/
  33. #include <adcgcfnc.h>
  34. /****************************************************************************/
  35. /* Include performance monitoring macros. */
  36. /****************************************************************************/
  37. #include <adcgperf.h>
  38. /****************************************************************************/
  39. /* Include optional defines. */
  40. /****************************************************************************/
  41. #include <aducdefs.h>
  42. /****************************************************************************/
  43. /* Include T.120 header files */
  44. /****************************************************************************/
  45. #include <license.h>
  46. #include <at128.h>
  47. #include <at120ex.h>
  48. //
  49. // Use wide on CE leave unchange on other plats
  50. //
  51. #ifndef OS_WINCE
  52. #define CE_WIDETEXT(x) (x)
  53. #else
  54. #define CE_WIDETEXT(x) _T(x)
  55. #endif
  56. #define SIZE_TCHARS(xx) sizeof(xx)/sizeof(TCHAR)
  57. #ifndef SecureZeroMemory
  58. #define SecureZeroMemory TsSecureZeroMemory
  59. #endif
  60. #if !defined(MIDL_PASS)
  61. FORCEINLINE
  62. PVOID
  63. TsSecureZeroMemory(
  64. IN PVOID ptr,
  65. IN SIZE_T cnt
  66. )
  67. {
  68. volatile char *vptr = (volatile char *)ptr;
  69. while (cnt) {
  70. *vptr = 0;
  71. vptr++;
  72. cnt--;
  73. }
  74. return ptr;
  75. }
  76. #endif
  77. #endif /* _H_ADCGBASE */