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.
78 lines
1.6 KiB
78 lines
1.6 KiB
// Copyright (c) 2002 Microsoft Corporation
|
|
//
|
|
// File: IndexingInstallationUnit.h
|
|
//
|
|
// Synopsis: Declares a IndexingInstallationUnit
|
|
// This object has the knowledge for installing the
|
|
// indexing service
|
|
//
|
|
// History: 03/20/2002 JeffJon Created
|
|
|
|
#ifndef __CYS_INDEXINGINSTALLATIONUNIT_H
|
|
#define __CYS_INDEXINGINSTALLATIONUNIT_H
|
|
|
|
#include "InstallationUnit.h"
|
|
|
|
class IndexingInstallationUnit : public InstallationUnit
|
|
{
|
|
public:
|
|
|
|
// Constructor
|
|
|
|
IndexingInstallationUnit();
|
|
|
|
// Destructor
|
|
|
|
virtual
|
|
~IndexingInstallationUnit();
|
|
|
|
|
|
// Installation Unit overrides
|
|
|
|
virtual
|
|
InstallationReturnType
|
|
InstallService(HANDLE logfileHandle, HWND hwnd);
|
|
|
|
virtual
|
|
UnInstallReturnType
|
|
UnInstallService(HANDLE logfileHandle, HWND hwnd);
|
|
|
|
virtual
|
|
bool
|
|
IsServiceInstalled();
|
|
|
|
virtual
|
|
bool
|
|
GetMilestoneText(String& /*message*/) { return true; }
|
|
|
|
virtual
|
|
bool
|
|
GetUninstallMilestoneText(String& /*message*/) { return true; }
|
|
|
|
// Public methods
|
|
|
|
HRESULT
|
|
StartService(HANDLE logfileHandle);
|
|
|
|
HRESULT
|
|
StopService();
|
|
|
|
bool
|
|
IsServiceOn();
|
|
|
|
private:
|
|
|
|
HRESULT
|
|
ChangeServiceConfigToAutoStart();
|
|
|
|
HRESULT
|
|
ChangeServiceConfigToDisabled();
|
|
|
|
HRESULT
|
|
ChangeServiceStartType(DWORD startType);
|
|
|
|
HRESULT
|
|
ModifyIndexingService(bool turnOn);
|
|
};
|
|
|
|
#endif // __CYS_FILEINSTALLATIONUNIT_H
|