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.

80 lines
1.7 KiB

  1. //--------------------------------------------------------------
  2. // common user interface routines
  3. //
  4. //
  5. //--------------------------------------------------------------
  6. #ifdef CSC_ON_NT
  7. #ifndef DEFINED_UNICODE
  8. #define _UNICODE
  9. #define UNICODE
  10. #define DEFINED_UNICODE
  11. #endif
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #undef ASSERT
  16. #else
  17. #define STRICT
  18. #endif
  19. #define NOWINDOWSX
  20. #define NOSHELLDEBUG
  21. #define DONT_WANT_SHELLDEBUG
  22. #define USE_MONIKER
  23. #define _INC_OLE // WIN32
  24. #include <tchar.h>
  25. #include <windows.h>
  26. #include <windowsx.h>
  27. #include <shellapi.h> // for registration functions
  28. #include "port32.h"
  29. #define NO_COMMCTRL_DA
  30. #define NO_COMMCTRL_ALLOCFCNS
  31. #define NO_COMMCTRL_STRFCNS
  32. // the DebugMsg is here because we want OUR Assert, not their stub.
  33. #define DebugMsg 1 ? (void)0 : (void) /* ;Internal */
  34. #include <commctrl.h>
  35. #ifdef CSC_ON_NT
  36. #include <comctrlp.h>
  37. #endif
  38. #include <ole2.h> // object binding
  39. #include <shlobj.h> // IContextMenu
  40. #include <shlwapi.h>
  41. #include <stdlib.h>
  42. #include <string.h> // for string macros
  43. #include <limits.h> // implementation dependent values
  44. #include <memory.h>
  45. #include <synceng.h> // Twin Engine include file
  46. #include <cscapi.h>
  47. #ifdef CSC_ON_NT
  48. #ifndef DBG
  49. #define DBG 0
  50. #endif
  51. #if DBG
  52. #define DEBUG
  53. #else
  54. //if we don't do this DEBUG is defined in shdsys.h....sigh
  55. #define NONDEBUG
  56. #endif
  57. #endif //ifdef CSC_ON_NT
  58. /* globals */
  59. extern HANDLE vhinstCur; // current instance
  60. #include "assert.h"
  61. // Dont link - just do it.
  62. #pragma intrinsic(memcpy,memcmp,memset,strcpy,strlen,strcmp,strcat)