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.

44 lines
974 B

  1. Attribute VB_Name = "Main"
  2. Option Explicit
  3. Public Sub MainFunction( _
  4. ByVal i_strCABIn As String, _
  5. ByVal i_strCABOut As String, _
  6. ByVal i_strSubSiteXML As String, _
  7. ByVal i_strHHT As String, _
  8. ByVal i_blnPopulateHelpImage As Boolean _
  9. )
  10. On Error GoTo LError
  11. Dim strFolder As String
  12. Dim intErrorNumber As Long
  13. strFolder = Cab2Folder(i_strCABIn)
  14. If (i_strSubSiteXML <> "") Then
  15. MarkSubSites strFolder, i_strSubSiteXML
  16. End If
  17. If (i_strHHT <> "") Then
  18. AddHHT strFolder, i_strHHT
  19. End If
  20. If (i_blnPopulateHelpImage) Then
  21. PopulateHelpImage strFolder
  22. End If
  23. Folder2Cab strFolder, i_strCABOut
  24. LEnd:
  25. DeleteCabFolder strFolder
  26. Exit Sub
  27. LError:
  28. frmMain.Output Err.Description, LOGGING_TYPE_ERROR_E
  29. intErrorNumber = Err.Number
  30. DeleteCabFolder strFolder
  31. Err.Raise intErrorNumber
  32. End Sub