Leaked source code of windows server 2003
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.
 
 
 
 
 
 

63 lines
1.9 KiB

// Utils.h: interface for the Utils class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_UTILS_H__E86DC0AD_243D_4610_80A8_81C8A14D464C__INCLUDED_)
#define AFX_UTILS_H__E86DC0AD_243D_4610_80A8_81C8A14D464C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// This is the title for all wizard pages as well as the string that is shown in Add/Remove programs
extern LPCWSTR MAIN_TITLE;
BOOL IsMonInstalled ( void );
BOOL IsAdmin ( void );
BOOL IsIISInstalled ( void );
BOOL IsWhistlerSrv ( void );
BOOL IsIA64 ( void );
BOOL IsNTFS ( void );
BOOL IsMonInstalled ( void );
BOOL IsTaskSchRunning( void );
BOOL IsW3SVCEnabled ( void );
LPCTSTR CanInstall ( void );
// Task related
HRESULT SetupTasks ( void );
void DeleteTasks ( void );
HRESULT AddTask ( const ITaskSchedulerPtr& spTaskSch,
LPCWSTR wszSubname,
LPCWSTR wszFileName,
LPCWSTR wszComment,
DWORD dwTimeout,
TASK_TRIGGER& Trigger );
void InitTrigger ( TASK_TRIGGER& Trigger );
// Registry related
HRESULT SetupRegistry ( BOOL bEnableTrail, DWORD dwDaysToKeep );
HRESULT SetIISMonRegData( LPCWSTR wszSubkey, LPCWSTR wszName, DWORD dwType, const BYTE* pbtData, DWORD dwSize );
void DelIISMonKey ( void );
// Directory and file related
void GetIISMonPath ( LPWSTR wszPath );
HRESULT SetupDirStruct ( void );
HRESULT SetupACLs ( void );
void DeleteDirStruct ( BOOL bRemoveTrail );
void DelDirWithFiles ( LPCWSTR wszDir );
// INF related
HRESULT InstallFromINF ( void );
UINT CALLBACK INFInstallCallback( PVOID pvCtx, UINT nNotif, UINT_PTR nP1, UINT_PTR nP2 );
LPCTSTR Install ( HINSTANCE hInstance, BOOL bAuditTrailEnabled, DWORD dwDaysToKeep );
void Uninstall ( BOOL bRemoveTrail );
#endif // !defined(AFX_UTILS_H__E86DC0AD_243D_4610_80A8_81C8A14D464C__INCLUDED_)