DeferZeroFill.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. // IDeferZeroFill interface exposed a custom memory allocator and media sample.
  2. //
  3. // Copyright (C) 1997- Cakewalk Music Software. All rights reserved.
  4. //
  5. #ifndef _DEFERZEROFILL_H_
  6. #define _DEFERZEROFILL_H_
  7. /////////////////////////////////////////////////////////////////////////////
  8. // Clients that wish to create real copies of the GUID must first include INITGUID.H
  9. // {447DA113-4AC8-4833-849A-2BA285E1E52B}
  10. DEFINE_GUID(IID_IDeferZeroFill,
  11. 0x447da113, 0x4ac8, 0x4833, 0x84, 0x9a, 0x2b, 0xa2, 0x85, 0xe1, 0xe5, 0x2b);
  12. #undef INTERFACE
  13. #define INTERFACE IDeferZeroFill
  14. DECLARE_INTERFACE_( IDeferZeroFill, IUnknown )
  15. {
  16. // *** IUnknown methods ***
  17. STDMETHOD_(HRESULT, QueryInterface)( THIS_ REFIID riid, LPVOID* ppvObj ) PURE;
  18. STDMETHOD_(ULONG, AddRef)( THIS ) PURE;
  19. STDMETHOD_(ULONG, Release)( THIS ) PURE;
  20. // *** IDeferZeroFill methods ***
  21. STDMETHOD_(BOOL, get_NeedsZerofill)( THIS ) PURE;
  22. STDMETHOD_(void, put_NeedsZerofill)( THIS_ BOOL bZero ) PURE;
  23. STDMETHOD_(HRESULT, GetRawPointer)( THIS_ BYTE** ppBuffer ) PURE;
  24. };
  25. #endif // _DEFERZEROFILL_H_