CtrlHandler.cpp 972 B

12345678910111213141516171819202122232425262728293031
  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: CtrlHandler.cpp
  12. |*
  13. |* PURPOSE: Handle Ctrl events
  14. ******************************************************************************/
  15. #include "stdafx.h"
  16. #include "BurnCore.h"
  17. bool CWriteToDVD::s_bAborted = false;
  18. BOOL WINAPI CWriteToDVD::CtrlHandler (DWORD dwCtrlType)
  19. {
  20. // Whatever event occurred, we are handling it by aborting
  21. // any current operation. The operation will be aborted the
  22. // next time that NeroAPI calls AbortedCallback
  23. s_bAborted =true;
  24. return TRUE;
  25. }