Source code of Windows XP (NT5)
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.

29 lines
658 B

  1. Attribute VB_Name = "HSCHelpFileImageGlobal"
  2. Option Explicit
  3. Public g_bOnErrorHandling As Boolean
  4. Public g_XErr As ExtendedErrorInfo
  5. Function GlobalInit() As Boolean
  6. Static s_GlobalInit As Boolean
  7. If (s_GlobalInit) Then GoTo Common_Exit
  8. g_bOnErrorHandling = True
  9. Dim strErrMsg As String: strErrMsg = "": If (g_bOnErrorHandling) Then On Error GoTo Error_Handler
  10. Set g_XErr = New ExtendedErrorInfo
  11. strErrMsg = "Initializing Global variables"
  12. ' Variables for Summary Data.
  13. s_GlobalInit = True
  14. Common_Exit:
  15. GlobalInit = s_GlobalInit
  16. Exit Function
  17. Error_Handler:
  18. GoTo Common_Exit
  19. End Function