Source code of Windows XP (NT5)
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.

61 lines
1.8 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (c) 1998-2000 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: setopsts.cpp
  6. //
  7. // Description:
  8. //
  9. // Implementation for the GetOperationResult() function
  10. //
  11. //=======================================================================
  12. #include "iuengine.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. // SetOperationMode()
  15. // Set the operation mode.
  16. //
  17. // Input:
  18. // bstrUuidOperation - an id provided by the client to provide further
  19. // identification to the operation as indexes may be reused.
  20. // lMode - the mode affecting the operation:
  21. //
  22. // UPDATE_COMMAND_PAUSE
  23. // UPDATE_COMMAND_RESUME
  24. // UPDATE_COMMAND_CANCEL
  25. //
  26. /////////////////////////////////////////////////////////////////////////////
  27. HRESULT WINAPI CEngUpdate::SetOperationMode(BSTR bstrUuidOperation, LONG lMode)
  28. {
  29. LOG_Block("CEngUpdate::SetOperationMode");
  30. if (UPDATE_COMMAND_CANCEL != lMode)
  31. return E_INVALIDARG;
  32. // only supported operation mode is cancel
  33. SetEvent(m_evtNeedToQuit);
  34. LOG_Out(_T("Set m_evtNeedToQuit"));
  35. return S_OK;
  36. }
  37. /////////////////////////////////////////////////////////////////////////////
  38. // GetOperationMode()
  39. // Get the operation mode.
  40. //
  41. // Input:
  42. // bstrUuidOperation - an id provided by the client to provide further
  43. // identification to the operation as indexes may be reused.
  44. // lMode - the mode affecting the operation:
  45. //
  46. // UPDATE_MODE_PAUSED
  47. // UPDATE_MODE_RUNNING
  48. // UPDATE_MODE_NOTEXISTS
  49. // UPDATE_MODE_THROTTLE
  50. //
  51. /////////////////////////////////////////////////////////////////////////////
  52. HRESULT WINAPI CEngUpdate::GetOperationMode(BSTR bstrUuidOperation, LONG* plMode)
  53. {
  54. return E_NOTIMPL;
  55. }