mirror of https://github.com/tongzx/nt5src
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.
62 lines
1.8 KiB
62 lines
1.8 KiB
//=======================================================================
|
|
//
|
|
// Copyright (c) 1998-2000 Microsoft Corporation. All Rights Reserved.
|
|
//
|
|
// File: setopsts.cpp
|
|
//
|
|
// Description:
|
|
//
|
|
// Implementation for the GetOperationResult() function
|
|
//
|
|
//=======================================================================
|
|
|
|
#include "iuengine.h"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// SetOperationMode()
|
|
// Set the operation mode.
|
|
//
|
|
// Input:
|
|
// bstrUuidOperation - an id provided by the client to provide further
|
|
// identification to the operation as indexes may be reused.
|
|
// lMode - the mode affecting the operation:
|
|
//
|
|
// UPDATE_COMMAND_PAUSE
|
|
// UPDATE_COMMAND_RESUME
|
|
// UPDATE_COMMAND_CANCEL
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
HRESULT WINAPI CEngUpdate::SetOperationMode(BSTR bstrUuidOperation, LONG lMode)
|
|
{
|
|
LOG_Block("CEngUpdate::SetOperationMode");
|
|
if (UPDATE_COMMAND_CANCEL != lMode)
|
|
return E_INVALIDARG;
|
|
|
|
// only supported operation mode is cancel
|
|
SetEvent(m_evtNeedToQuit);
|
|
LOG_Out(_T("Set m_evtNeedToQuit"));
|
|
return S_OK;
|
|
}
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// GetOperationMode()
|
|
// Get the operation mode.
|
|
//
|
|
// Input:
|
|
// bstrUuidOperation - an id provided by the client to provide further
|
|
// identification to the operation as indexes may be reused.
|
|
// lMode - the mode affecting the operation:
|
|
//
|
|
// UPDATE_MODE_PAUSED
|
|
// UPDATE_MODE_RUNNING
|
|
// UPDATE_MODE_NOTEXISTS
|
|
// UPDATE_MODE_THROTTLE
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
HRESULT WINAPI CEngUpdate::GetOperationMode(BSTR bstrUuidOperation, LONG* plMode)
|
|
{
|
|
return E_NOTIMPL;
|
|
}
|