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.

64 lines
1.2 KiB

  1. //TODO: change CSampleBinary to the name of your binary object
  2. //-----------------------------------------------------------------------------
  3. //
  4. // File: IMPBIN.H
  5. //
  6. // Declaration of Binary Classes
  7. //
  8. // Copyright (c) 1995 - 1997, Microsoft Corporation. All rights reserved.
  9. //
  10. //-----------------------------------------------------------------------------
  11. #ifndef IMPBIN_H
  12. #define IMPBIN_H
  13. //Bynary IDs in the file.
  14. //
  15. // New types MUST be added at the end
  16. //
  17. enum
  18. {
  19. btSample = 1, //TODO: Define types for the Binary objects
  20. btBMOF = 2
  21. };
  22. class CSampleBinary : public CLocBinary
  23. {
  24. public:
  25. CSampleBinary();
  26. virtual ~CSampleBinary();
  27. #ifdef _DEBUG
  28. virtual void AssertValid(void) const;
  29. virtual void Dump(CDumpContext &) const;
  30. #endif
  31. virtual CompareCode Compare (const CLocBinary *);
  32. virtual void PartialUpdate(const CLocBinary * binSource);
  33. virtual BOOL GetProp(const Property, CLocVariant &) const;
  34. virtual BOOL SetProp(const Property, const CLocVariant &);
  35. virtual BOOL Convert(CLocItem *);
  36. virtual BinaryId GetBinaryId(void) const;
  37. //
  38. // Serialization routine.
  39. //
  40. virtual void Serialize(CArchive &archive);
  41. //TODO: Add data
  42. protected:
  43. void MemberDataInit();
  44. };
  45. #endif //IMPBIN_H