Declare Function GetSystemMetrics Lib "User32" (ByVal n As Integer) As Integer
Global Const SM_CXVSCROLL = 2
Global SavedSessionInfo(26) As Boolean
Global LogData$(0 To 99)
Global TempData$(0 To 12)
Global LogTop As Integer
Global LogEnd As Integer
Global Loged As Integer
Global FunctionComp As Integer
Global Const MAXLOGNUM = 99
Global Const CHECKED = 1
Global Const UNCHECKED = 0
Global Const NONE = 0
Global Const HOT = 1
Global Const COLD = 2
Global Const ST_OK = -1
Global Const ST_ERROR = 0
Global Const APPLICATION_NAME = "IBM327032" ' or "IBM525032"
Global MSG_SAMPLE_PROG As String
Global MSG_APPLICATION As String
Global MSG_TOPIC As String
Global MSG_ITEM As String
Global MSG_FUNCTION_COMP As String
Global MSG_DDE_ERROR As String
Global MSG_PARA_ERROR As String
Global MSG_INVALID_DATA As String
Global MSG_OK As String
Global MSG_NG As String
Global MSG_INVALID_PSID As String
Global Const cdlOFNReadOnly = &H1 'Checks Read-Only check box for Open and Save As dialog boxes.
Global Const cdlOFNOverwritePrompt = &H2 'Causes the Save As dialog box to generate a message box if the selected file already exists.
Global Const cdlOFNHideReadOnly = &H4 'Hides the Read-Only check box.
Global Const cdlOFNNoChangeDir = &H8 'Sets the current directory to what it was when the dialog box was invoked.
Global Const cdlOFNHelpButton = &H10 'Causes the dialog box to display the Help button.
Global Const cdlOFNNoValidate = &H100 'Allows invalid characters in the returned filename.
Global Const cdlOFNAllowMultiselect = &H200 'Allows the File Name list box to have multiple selections.
Global Const cdlOFNExtensionDifferent = &H400 'The extension of the returned filename is different from the extension set by the DefaultExt property.
Global Const cdlOFNPathMustExist = &H800 'User can enter only valid path names.
Global Const cdlOFNFileMustExist = &H1000 'User can enter only names of existing files.
Global Const cdlOFNCreatePrompt = &H2000 'Sets the dialog box to ask if the user wants to create a file that doesn't currently exist.
Global Const cdlOFNShareAware = &H4000 'Sharing violation errors will be ignored.
Global Const cdlOFNNoReadOnlyReturn = &H8000 'The returned file doesn't have the Read-Only attribute set and won't be in a write-protected directory.
Global Const cdlOFNExplorer = &H8000 'Use the Explorer-like Open A File dialog box template. (Windows 95 only.)
Global Const cdlOFNNoDereferenceLinks = &H100000 'Do not dereference shortcuts (shell links). By default, choosing a shortcut causes it to be dereferenced by the shell. (Windows 95 only.)
Global Const cdlOFNLongNames = &H200000 'Use Long filenames. (Windows 95 only.)
Public Function GetDisplayType(SessionId As String) As String
On Error GoTo ErrHandler
FunctionComp = True
GetDisplayType$ = "NONE"
rc = DoEvents() 'If you use VisualBasic V2.0, call