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.

80 lines
1.9 KiB

  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5. #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
  6. #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. #if 0 // turn this on to build in MSDEV
  11. #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
  12. #define _WIN32_WINDOWS 0x401
  13. #define WINVER 0x500
  14. #endif
  15. #if DBG == 1
  16. #define _DEBUG
  17. #endif
  18. // Windows Header Files:
  19. #include <windows.h>
  20. #include <windowsx.h>
  21. // C RunTime Header Files
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #include <malloc.h>
  25. #include <memory.h>
  26. #include <tchar.h>
  27. extern HINSTANCE g_hInstance;
  28. extern HFONT g_hFont;
  29. extern DWORD g_nComponentFilters;
  30. extern LPTSTR g_pszFilters;
  31. extern BOOL *g_pfSelectedComponent;
  32. extern BOOL g_fNetworkName;
  33. extern BOOL g_fGenericService;
  34. extern BOOL g_fPhysicalDisk;
  35. extern BOOL g_fIPAddress;
  36. extern BOOL g_fGenericApplication;
  37. extern BOOL g_fFileShare;
  38. extern HWND g_hwndFind;
  39. extern BOOL g_fResourceNoise;
  40. extern BOOL g_fShowServerNames;
  41. //
  42. // Defines
  43. //
  44. #define WM_FIND_NEXT WM_USER // wParam == Flags, lParam == Search String
  45. #define WM_MARK_ALL WM_USER + 1 // wParam == Flags, lParam == Search String
  46. // Flags for WM_FIND_NEXT and WM_MARK_ALL
  47. #define FIND_UP 0x01
  48. #define FIND_MATCHCASE 0x02
  49. #define FIND_WHOLE_WORD 0x04
  50. //
  51. // CWaitCursor
  52. //
  53. class
  54. CWaitCursor
  55. {
  56. private:
  57. HCURSOR _hCursor;
  58. public:
  59. CWaitCursor( ) { _hCursor = SetCursor( LoadCursor( NULL, IDC_WAIT ) ); };
  60. ~CWaitCursor( ) { SetCursor( _hCursor ); };
  61. };
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)