NeroProgress.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /******************************************************************************
  2. |* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. |* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. |* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. |* PARTICULAR PURPOSE.
  6. |*
  7. |* Copyright 1995-2004 Ahead Software AG. All Rights Reserved.
  8. |*-----------------------------------------------------------------------------
  9. |* NeroSDK / NeroCmd
  10. |*
  11. |* PROGRAM: NeroProgress.h
  12. |*
  13. |* PURPOSE: Wrapper for NERO_PROGRESS structure
  14. ******************************************************************************/
  15. #include "stdafx.h"
  16. class CNeroProgress
  17. {
  18. protected:
  19. NERO_PROGRESS * m_pNeroProgress;
  20. public:
  21. CNeroProgress ()
  22. {
  23. m_pNeroProgress = NeroCreateProgress ();
  24. _ASSERTE (m_pNeroProgress != NULL);
  25. }
  26. ~CNeroProgress ()
  27. {
  28. NeroFreeMem (m_pNeroProgress);
  29. }
  30. NERO_PROGRESS * operator-> ()
  31. {
  32. return m_pNeroProgress;
  33. }
  34. operator NERO_PROGRESS * ()
  35. {
  36. return m_pNeroProgress;
  37. }
  38. };