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.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1995.
  5. //
  6. // File: MEMLB.HXX
  7. //
  8. // Contents:
  9. //
  10. // Classes: Declaration for MemLockBytes class, which derives
  11. // from the CLockBytes class.
  12. //
  13. // Functions:
  14. //
  15. // History: 12-13-95 JoeS (Joe Souza) Created
  16. //
  17. //----------------------------------------------------------------------------
  18. class FAR MemLockBytes : public CLockBytes
  19. {
  20. public:
  21. // *** IUnknown methods ***
  22. STDMETHOD_(ULONG,Release) (THIS);
  23. // *** ILockBytes methods ***
  24. STDMETHOD(ReadAt) (THIS_ ULARGE_INTEGER ulOffset, VOID HUGEP *pv,
  25. ULONG cb, ULONG FAR *pcbRead);
  26. STDMETHOD(WriteAt) (THIS_ ULARGE_INTEGER ulOffset, VOID const HUGEP *pv,
  27. ULONG cb, ULONG FAR *pcbWritten);
  28. STDMETHOD(SetSize) (THIS_ ULARGE_INTEGER cb);
  29. private:
  30. CRefCount _CRefs;
  31. HGLOBAL memhandle;
  32. };