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.

93 lines
2.4 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997-1999 **/
  4. /**********************************************************************/
  5. /*
  6. stdafx.h
  7. include file for standard system include files,
  8. or project specific include files that are used frequently,
  9. but are changed infrequently
  10. FILE HISTORY:
  11. */
  12. #include <afxwin.h>
  13. #include <afxdisp.h>
  14. #include <afxcmn.h>
  15. #include <afxdlgs.h>
  16. #include <afxtempl.h>
  17. #include <atlbase.h>
  18. #include <commctrl.h>
  19. //
  20. // You may derive a class from CComModule and use it if you want to override
  21. // something, but do not change the name of _Module
  22. //
  23. extern CComModule _Module;
  24. #include <atlcom.h>
  25. #include <mmc.h>
  26. #include <aclapi.h> // for adding admin acl to registry subkey
  27. // from stub_extract_string.cpp
  28. HRESULT ExtractString( IDataObject* piDataObject,
  29. CLIPFORMAT cfClipFormat,
  30. CString* pstr,
  31. DWORD cchMaxLength );
  32. //
  33. // Constants used in samples
  34. //
  35. const int NUM_FOLDERS = 2;
  36. const int MAX_COLUMNS = 1;
  37. //
  38. // Types of folders
  39. //
  40. enum FOLDER_TYPES
  41. {
  42. SAMPLE_ROOT,
  43. SAMPLE_DUMMY,
  44. NONE
  45. };
  46. extern LPCWSTR g_lpszNullString;
  47. extern const CLSID CLSID_SnmpSnapin; // In-Proc server GUID
  48. extern const CLSID CLSID_SnmpSnapinExtension; // In-Proc server GUID
  49. extern const CLSID CLSID_SnmpSnapinAbout; // In-Proc server GUID
  50. extern const GUID GUID_SnmpRootNodeType; // Main NodeType GUID on numeric format
  51. //
  52. // New Clipboard format that has the Type and Cookie
  53. //
  54. extern const wchar_t* SNAPIN_INTERNAL;
  55. //
  56. // NOTE: Right now all header files are included from here. It might be a good
  57. // idea to move the snapin specific header files out of the precompiled header.
  58. //
  59. #include "resource.h"
  60. #include <snapbase.h>
  61. #include <dialog.h>
  62. #include "ccdata.h"
  63. #include "snmpcomp.h"
  64. #include "snmp_cn.h"
  65. #include "helparr.h"
  66. // Note - These are offsets into my image list
  67. typedef enum _IMAGE_INDICIES
  68. {
  69. IMAGE_IDX_FOLDER_CLOSED,
  70. IMAGE_IDX_NA1,
  71. IMAGE_IDX_NA2,
  72. IMAGE_IDX_NA3,
  73. IMAGE_IDS_NA4,
  74. IMAGE_IDX_FOLDER_OPEN
  75. } IMAGE_INDICIES, *LPIMAGE_INDICIES;