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.

141 lines
2.8 KiB

  1. /****************************************************************************
  2. Copyright (c) Microsoft Corporation 1997
  3. All rights reserved
  4. ***************************************************************************/
  5. #ifndef _SETUP_H_
  6. #define _SETUP_H_
  7. typedef struct _sSCPDATA {
  8. LPWSTR pszAttribute;
  9. LPWSTR pszValue;
  10. } SCPDATA, * LPSCPDATA;
  11. typedef BOOLEAN
  12. (CALLBACK *POPERATECALLBACK) (
  13. IN PWSTR FileName
  14. );
  15. //
  16. // Use this structure to driver changes (lines) that
  17. // need to be added/removed from login.osc when we run
  18. // risetup. We'll use this mechanism to patch legacy
  19. // instances of login.osc that may be hanging around
  20. // on the machine.
  21. //
  22. typedef struct _LOGIN_PATCHES {
  23. //
  24. // Are we adding or deleting this string?
  25. //
  26. BOOLEAN AddString;
  27. //
  28. // Boolean indicating whether the string was successfully added/deleted
  29. //
  30. BOOLEAN OperationCompletedSuccessfully;
  31. //
  32. // Index to any other entry that this entry might be dependent on.
  33. // -1 means we're not dependent on any other entry. In other words,
  34. // don't process the operation in this entry unless the other entry's
  35. // OperationCompletedSuccessfully has been set.
  36. //
  37. LONG DependingEntry;
  38. //
  39. // What's the tag that specifies the beginning of
  40. // the section where our string needs to go?
  41. //
  42. PSTR SectionStartTag;
  43. //
  44. // What's the tag that specifies the ending of
  45. // the section where our string needs to go?
  46. //
  47. PSTR SectionEndTag;
  48. //
  49. // String to add/delete to the section.
  50. //
  51. PSTR TargetString;
  52. } LOGIN_PATCHES, *PLOGIN_PATCHES;
  53. extern SCPDATA scpdata[];
  54. BOOLEAN
  55. CALLBACK
  56. FixLoginOSC(
  57. PWSTR FileName
  58. );
  59. HRESULT
  60. EnumAndOperate(
  61. PWSTR pszDirName,
  62. PWSTR pszTargetFile,
  63. POPERATECALLBACK FileOperateCallback
  64. );
  65. HRESULT
  66. BuildDirectories( void );
  67. HRESULT
  68. CreateDirectories( HWND hDlg );
  69. HRESULT
  70. CopyClientFiles( HWND hDlg );
  71. HRESULT
  72. ModifyRegistry( HWND hDlg );
  73. HRESULT
  74. StartRemoteBootServices( HWND hDlg );
  75. HRESULT
  76. CreateRemoteBootShare( HWND hDlg );
  77. HRESULT
  78. CreateRemoteBootServices( HWND hDlg );
  79. HRESULT
  80. CopyServerFiles( HWND hDlg );
  81. HRESULT
  82. CopyScreenFiles( HWND hDlg );
  83. HRESULT
  84. UpdateSIFFile( HWND hDlg );
  85. HRESULT
  86. CopyTemplateFiles( HWND hDlg );
  87. HRESULT
  88. GetSisVolumePath( PWCHAR buffer, DWORD sizeInChars );
  89. HRESULT
  90. CreateSISVolume( HWND hDlg );
  91. HRESULT
  92. SetSISCommonStoreSecurity( PWCHAR szSISPath );
  93. BOOL
  94. CheckSISCommonStoreSecurity( PWCHAR szSISPath );
  95. HRESULT
  96. CreateSCP( HWND hDlg );
  97. HRESULT
  98. RegisterDll( HWND hDlg, LPWSTR pszDLLPath );
  99. HRESULT
  100. UpdateRemoteInstallTree( );
  101. HRESULT
  102. GetRemoteInstallShareInfo();
  103. #endif // _SETUP_H_