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.

37 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: CLOCKBYT.HXX
  7. //
  8. // Contents:
  9. //
  10. // Classes: Declaration for ILockBytes base class
  11. //
  12. // Functions:
  13. //
  14. // History: 12-01-95 JoeS (Joe Souza) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. class FAR CLockBytes : public ILockBytes
  18. {
  19. public:
  20. // *** IUnknown methods ***
  21. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj);
  22. STDMETHOD_(ULONG,AddRef) (THIS);
  23. // *** ILockBytes methods ***
  24. STDMETHOD(Flush) (THIS);
  25. STDMETHOD(LockRegion) (THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb,
  26. DWORD dwLockType);
  27. STDMETHOD(UnlockRegion) (THIS_ ULARGE_INTEGER libOffset,
  28. ULARGE_INTEGER cb, DWORD dwLockType);
  29. STDMETHOD(Stat) (THIS_ STATSTG FAR *pStatStg, DWORD grfStatFlag);
  30. private:
  31. CRefCount _CRefs;
  32. };