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.

107 lines
2.7 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. // stdafx.h : include file for standard system include files,
  3. // or project specific include files that are used frequently,
  4. // but are changed infrequently
  5. #if !defined(AFX_STDAFX_H__B91B5FFE_32D2_11D2_9888_00A0C925F917__INCLUDED_)
  6. #define AFX_STDAFX_H__B91B5FFE_32D2_11D2_9888_00A0C925F917__INCLUDED_
  7. #if _MSC_VER >= 1000
  8. #pragma once
  9. #endif // _MSC_VER >= 1000
  10. #define STRICT
  11. //#define _WIN32_WINNT 0x0400
  12. #define _ATL_APARTMENT_THREADED
  13. #include <atlbase.h>
  14. //You may derive a class from CComModule and use it if you want to override
  15. //something, but do not change the name of _Module
  16. extern CComModule _Module;
  17. #include <atlcom.h>
  18. #include<winsta.h>
  19. #include "cfgbkend.h"
  20. #include "srvsetex.h"
  21. #if __RPCNDR_H_VERSION__ < 440 // This may be needed when building
  22. #define __RPCNDR_H_VERSION__ 440 // on NT5 (1671) to prevent MIDL errors
  23. #define MIDL_INTERFACE(x) interface
  24. #endif
  25. #define ALN_APPLY ( WM_USER + 333 )
  26. #define ERROR_ILLEGAL_CHARACTER 0x01
  27. #define ERROR_INVALID_FIRSTCHARACTER 0x02
  28. #define SPECIAL_ENABLETODISABLE 0x82345678
  29. #define SPECIAL_DISABLETOENABLE 0x82345679
  30. #define SIZE_OF_BUFFER( x ) sizeof( x ) / sizeof( TCHAR )
  31. #ifdef DBG
  32. extern bool g_fDebug;
  33. #define ODS( x ) \
  34. if( g_fDebug ) OutputDebugString( x );\
  35. #define DBGMSG( x , y ) \
  36. {\
  37. TCHAR tchErr[180]; \
  38. if( g_fDebug ) {\
  39. wsprintf( tchErr , x , y ); \
  40. ODS( tchErr ); \
  41. }\
  42. }
  43. #define VERIFY_E( retval , expr ) \
  44. if( ( expr ) == retval ) \
  45. { \
  46. ODS( L#expr ); \
  47. ODS( L" returned "); \
  48. ODS( L#retval ); \
  49. ODS( L"\n" ); \
  50. } \
  51. #define VERIFY_S( retval , expr ) \
  52. if( ( expr ) != retval ) \
  53. {\
  54. ODS( L#expr ); \
  55. ODS( L" failed to return " ); \
  56. ODS( L#retval ); \
  57. ODS( L"\n" ); \
  58. }\
  59. #define ASSERT( expr ) \
  60. if( !( expr ) ) \
  61. { \
  62. char tchAssertErr[ 180 ]; \
  63. wsprintfA( tchAssertErr , "Assertion in expression ( %s ) failed\nFile - %s\nLine - %d\nDo you wish to Debug?", #expr , (__FILE__) , __LINE__ ); \
  64. if( MessageBoxA( NULL , tchAssertErr , "ASSERTION FAILURE" , MB_YESNO | MB_ICONERROR ) == IDYES ) \
  65. {\
  66. DebugBreak( );\
  67. }\
  68. } \
  69. #else
  70. #define ODS
  71. #define DBGMSG
  72. #define ASSERT( expr )
  73. #define VERIFY_E( retval , expr ) ( expr )
  74. #define VERIFY_S( retval , expr ) ( expr )
  75. #endif
  76. #define WINSTATION_NAME_TRUNCATE_BY 7
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_STDAFX_H__B91B5FFE_32D2_11D2_9888_00A0C925F917__INCLUDED)