home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / cluster / smbsmp / smbsmpex / stdafx.h < prev   
Encoding:
C/C++ Source or Header  |  1997-07-29  |  2.3 KB  |  64 lines

  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.  
  6. #define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers
  7.  
  8. #ifndef _UNICODE
  9. #define _UNICODE            // Microsoft Windows NT Cluster Administrator
  10.                             //   Extension DLLs need to be Unicode
  11.                             //   applications.
  12. #endif
  13.  
  14. // Choose which threading model you want by commenting or uncommenting
  15. // the proper constant definition.  If you want multi-threading
  16. // (i.e. "both"), comment both definitions out.  Also change the
  17. // THREADFLAGS_xxx set in the DECLARE_REGISTRY macro invokation in ExtObj.h
  18. //#define _ATL_SINGLE_THREADED
  19. #define _ATL_APARTMENT_THREADED
  20.  
  21. // Link against the Microsoft Windows NT Cluster API library.
  22. #pragma comment(lib, "clusapi.lib")
  23.  
  24. // Link against the Cluster Administrator Extensions library.
  25. #pragma comment(lib, "cluadmex.lib")
  26.  
  27. // Link against Resource Utilities library.
  28. #pragma comment(lib, "resutils.lib")
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // Common Pragmas
  32. /////////////////////////////////////////////////////////////////////////////
  33.  
  34. #pragma warning(disable : 4100)        // unreferenced formal parameters
  35. #pragma warning(disable : 4702)        // unreachable code
  36. #pragma warning(disable : 4711)        // function selected for automatic inline expansion
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // Include Files
  40. /////////////////////////////////////////////////////////////////////////////
  41.  
  42. #include <afxwin.h>            // MFC core and standard components
  43. #include <afxext.h>            // MFC extensions
  44. #include <afxdisp.h>
  45. #include <afxtempl.h>
  46. #ifndef _AFX_NO_AFXCMN_SUPPORT
  47. #include <afxcmn.h>            // MFC support for Windows 95 Common Controls
  48. #endif // _AFX_NO_AFXCMN_SUPPORT
  49.  
  50. #include <atlbase.h>
  51. //You may derive a class from CComModule and use it if you want to override
  52. //something, but do not change the name of _Module
  53. extern CComModule _Module;
  54. #include <atlcom.h>
  55.  
  56. #include <clusapi.h>
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // Common Types
  60. /////////////////////////////////////////////////////////////////////////////
  61.  
  62. typedef UINT    IDS;
  63. typedef UINT    IDD;
  64.