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. #ifndef _HELPER_H_
  2. #define _HELPER_H_
  3. /*
  4. #if DBG == 1
  5. #define iisDebugOut( x ) iisInlineDebugOut x
  6. #else // DBG == 0
  7. #define iisDebugOut( x )
  8. #endif // DBG
  9. */
  10. //#define iisDebugOut(x) MyDebugOut x
  11. //void MyDebugOut( TCHAR *pszfmt, ...);
  12. void iisDebugOut( TCHAR *pszfmt, ...);
  13. LPWSTR MakeWideStrFromAnsi(LPSTR psz);
  14. void MakePath(LPTSTR lpPath);
  15. void AddPath(LPTSTR szPath, LPCTSTR szName );
  16. int CheckIfFileExists(LPCTSTR szFile);
  17. int CheckIfPWS95Exists(void);
  18. int ReturnTrueIfPWS40_Installed(void);
  19. int ReturnTrueIfPWS10_Installed(void);
  20. int ReturnTrueIfVermeerPWS10_Installed(void);
  21. int MySettingsFile_Write(void);
  22. int MySettingsFile_Write_PWS10(void);
  23. int MySettingsFile_Write_PWS40(void);
  24. int MySettingsFile_Install(void);
  25. int ReturnImportantDirs(void);
  26. void SetupLogError_Wrap(IN LogSeverity TheSeverityErr, IN TCHAR * MessageString, ...);
  27. int MyUpgradeTasks(LPCSTR);
  28. int AddRegToInfIfExist_Dword(HKEY hRootKeyType,CHAR szRootKey[],CHAR szRootName[],HANDLE fAppendToFile);
  29. void DeleteMetabaseSchemaNode(void);
  30. BOOL MyIsGroupEmpty(LPCTSTR szGroupName);
  31. void MyGetGroupPath(LPCTSTR szGroupName, LPTSTR szPath);
  32. void MyDeleteItem(LPCTSTR szGroupName, LPCTSTR szAppName);
  33. BOOL MyDeleteLink(LPTSTR lpszShortcut);
  34. BOOL MyDeleteGroup(LPCTSTR szGroupName);
  35. BOOL W95ShutdownW3SVC(void);
  36. BOOL W95ShutdownIISADMIN(void);
  37. int Call_IIS_DLL_INF_Section(CHAR *szSectionName);
  38. int GetInetSrvDir(CHAR *szOutputThisFullPath);
  39. int CheckFrontPageINI(void);
  40. void MoveFrontPageINI(void);
  41. void HandleSpecialRegKey(void);
  42. void MyDeleteSendToItem(LPCTSTR szAppName);
  43. int MyGetSendToPath(LPTSTR szPath);
  44. int MyGetDesktopPath(LPTSTR szPath);
  45. void HandleStartMenuItems(LPCSTR AnswerFile);
  46. void HandleSendToItems(LPCSTR AnswerFile);
  47. void HandleDesktopItems(LPCSTR AnswerFile);
  48. int AnswerFile_ReadSectionAndDoDelete(IN HINF AnswerFileHandle);
  49. #endif // _HELPER_H_