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.

150 lines
3.3 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently,
  3. // but are changed infrequently
  4. #if !defined(AFX_STDAFX_H__B52C1E46_1DD2_11D1_BC43_00C04FC31FD3__INCLUDED_)
  5. #define AFX_STDAFX_H__B52C1E46_1DD2_11D1_BC43_00C04FC31FD3__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. /*
  10. #if defined(DBG) && !defined(_DEBUG)
  11. // since we are using mfc, we should have _DEBUG defind if DBG is
  12. // you might also want to set DEBUG_CRTS in source file to get rid of the linker errors.
  13. #error DBG Defined but _DEBUG is not!
  14. #endif
  15. #if defined(_DEBUG) && !defined(DBG)
  16. // since we are using mfc, we should have not have _DEBUG defind if DBG is not
  17. #error _DEBUG defined but DBG is not!
  18. #endif
  19. */
  20. #define STRICT
  21. /*
  22. #include <afxwin.h>
  23. #include <afxdisp.h>
  24. #include <afxcmn.h>
  25. #include <afxmt.h>
  26. #include <afxdlgs.h>
  27. */
  28. /*
  29. #include <windows.h>
  30. //#include <tchar.h>
  31. #include <time.h>
  32. #include <stdio.h>
  33. #include <setupapi.h>
  34. #include <prsht.h>
  35. */
  36. // #define _WIN32_WINNT 0x0400
  37. #define _ATL_APARTMENT_THREADED
  38. #ifdef _WIN32_IE
  39. #undef _WIN32_IE
  40. #endif
  41. #define _WIN32_IE 0x0400
  42. #include <nt.h>
  43. #include <ntrtl.h>
  44. #include <nturtl.h>
  45. #ifdef _RTM_
  46. #include <ntsam.h>
  47. #endif
  48. /*#include <ntlsa.h>
  49. */
  50. #include <windows.h>
  51. #include <prsht.h>
  52. #include <commctrl.h>
  53. #include <atlbase.h>
  54. //You may derive a class from CComModule and use it if you want to override
  55. //something, but do not change the name of _Module
  56. extern CComModule _Module;
  57. #include <atlcom.h>
  58. #include <shlobj.h>
  59. #include <dsclient.h>
  60. #include <mmc.h>
  61. #include <lm.h>
  62. #include <aclapi.h>
  63. extern HINSTANCE g_AdvApi32LibraryHandle;
  64. extern HINSTANCE g_ScramblingLibraryHandle;
  65. #include <activeds.h>
  66. //
  67. // Interface definitions
  68. //
  69. #include "tsuserex.h"
  70. #include "interfaces.h"
  71. #ifdef _RTM_
  72. #include "tsusrcpy.h"
  73. #endif
  74. #include "ads.h"
  75. #include "winsta.h"
  76. #ifdef _RTM_
  77. #ifdef __cplusplus
  78. extern "C" {
  79. #endif
  80. #include <regsam.h>
  81. #ifdef __cplusplus
  82. }
  83. #endif
  84. #endif
  85. // for 'trace' debuging (sample remnants)
  86. #ifdef DBG
  87. #define ODS OutputDebugString
  88. #define VERIFY_E( retval , expr ) \
  89. if( ( expr ) == retval ) \
  90. { \
  91. ODS( L#expr ); \
  92. ODS( L" returned "); \
  93. ODS( L#retval ); \
  94. ODS( L"\n" ); \
  95. } \
  96. #define VERIFY_S( retval , expr ) \
  97. if( ( expr ) != retval ) \
  98. {\
  99. ODS( L#expr ); \
  100. ODS( L" failed to return " ); \
  101. ODS( L#retval ); \
  102. ODS( L"\n" ); \
  103. }\
  104. #define ASSERT_( expr ) \
  105. if( !( expr ) ) \
  106. { \
  107. char tchAssertErr[ 256 ]; \
  108. wsprintfA( tchAssertErr , "Assertion in expression ( %s ) failed\nFile - %s\nLine - %d\nDo you wish to Debug?", #expr , (__FILE__) , __LINE__ ); \
  109. if( MessageBoxA( NULL , tchAssertErr , "ASSERTION FAILURE" , MB_YESNO | MB_ICONERROR ) == IDYES ) \
  110. {\
  111. DebugBreak( );\
  112. }\
  113. } \
  114. #else
  115. #define ODS
  116. #define VERIFY_E( retval , expr ) ( expr )
  117. #define VERIFY_S( retval , expr ) ( expr )
  118. #define ASSERT_( expr )
  119. #endif
  120. //#define ASSERT _ASSERT
  121. //{{AFX_INSERT_LOCATION}}
  122. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  123. #endif // !defined(AFX_STDAFX_H__B52C1E46_1DD2_11D1_BC43_00C04FC31FD3__INCLUDED)