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.

47 lines
1.4 KiB

  1. // cookie.h : Declaration of CMyComputerCookie and related classes
  2. #ifndef __COOKIE_H_INCLUDED__
  3. #define __COOKIE_H_INCLUDED__
  4. extern HINSTANCE g_hInstanceSave; // Instance handle of the DLL (initialized during CMyComputerComponent::Initialize)
  5. #include "nodetype.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // cookie
  8. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  9. //references as template arguments.
  10. #include "stdcooki.h"
  11. class CMyComputerCookie : public CCookie
  12. , public CStoresMachineName
  13. , public CBaseCookieBlock
  14. {
  15. public:
  16. CMyComputerCookie( MyComputerObjectType objecttype,
  17. LPCTSTR lpcszMachineName = NULL )
  18. : CStoresMachineName( lpcszMachineName )
  19. , m_objecttype( objecttype )
  20. , m_fRootCookieExpanded( false )
  21. {
  22. }
  23. // returns <0, 0 or >0
  24. virtual HRESULT CompareSimilarCookies( CCookie* pOtherCookie, int* pnResult );
  25. // CBaseCookieBlock
  26. virtual CCookie* QueryBaseCookie(int i);
  27. virtual int QueryNumCookies();
  28. public:
  29. MyComputerObjectType m_objecttype;
  30. // JonN 5/27/99: The System Tools and Storage nodes are automatically expanded
  31. // the first time the Computer node is shown (see IComponent::Show())
  32. bool m_fRootCookieExpanded;
  33. };
  34. #endif // ~__COOKIE_H_INCLUDED__