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

  1. // Utils.h: interface for the Utils class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_UTILS_H__E86DC0AD_243D_4610_80A8_81C8A14D464C__INCLUDED_)
  5. #define AFX_UTILS_H__E86DC0AD_243D_4610_80A8_81C8A14D464C__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. // This is the title for all wizard pages as well as the string that is shown in Add/Remove programs
  10. extern LPCWSTR MAIN_TITLE;
  11. BOOL IsMonInstalled ( void );
  12. BOOL IsAdmin ( void );
  13. BOOL IsIISInstalled ( void );
  14. BOOL IsWhistlerSrv ( void );
  15. BOOL IsIA64 ( void );
  16. BOOL IsNTFS ( void );
  17. BOOL IsMonInstalled ( void );
  18. BOOL IsTaskSchRunning( void );
  19. BOOL IsW3SVCEnabled ( void );
  20. LPCTSTR CanInstall ( void );
  21. // Task related
  22. HRESULT SetupTasks ( void );
  23. void DeleteTasks ( void );
  24. HRESULT AddTask ( const ITaskSchedulerPtr& spTaskSch,
  25. LPCWSTR wszSubname,
  26. LPCWSTR wszFileName,
  27. LPCWSTR wszComment,
  28. DWORD dwTimeout,
  29. TASK_TRIGGER& Trigger );
  30. void InitTrigger ( TASK_TRIGGER& Trigger );
  31. // Registry related
  32. HRESULT SetupRegistry ( BOOL bEnableTrail, DWORD dwDaysToKeep );
  33. HRESULT SetIISMonRegData( LPCWSTR wszSubkey, LPCWSTR wszName, DWORD dwType, const BYTE* pbtData, DWORD dwSize );
  34. void DelIISMonKey ( void );
  35. // Directory and file related
  36. void GetIISMonPath ( LPWSTR wszPath );
  37. HRESULT SetupDirStruct ( void );
  38. HRESULT SetupACLs ( void );
  39. void DeleteDirStruct ( BOOL bRemoveTrail );
  40. void DelDirWithFiles ( LPCWSTR wszDir );
  41. // INF related
  42. HRESULT InstallFromINF ( void );
  43. UINT CALLBACK INFInstallCallback( PVOID pvCtx, UINT nNotif, UINT_PTR nP1, UINT_PTR nP2 );
  44. LPCTSTR Install ( HINSTANCE hInstance, BOOL bAuditTrailEnabled, DWORD dwDaysToKeep );
  45. void Uninstall ( BOOL bRemoveTrail );
  46. #endif // !defined(AFX_UTILS_H__E86DC0AD_243D_4610_80A8_81C8A14D464C__INCLUDED_)