home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / nivb_src / fse.frm < prev    next >
Text File  |  1993-06-03  |  12KB  |  341 lines

  1. VERSION 2.00
  2. Begin Form FSEForm 
  3.    Caption         =   "File Server Environment Services Test"
  4.    Height          =   4845
  5.    Left            =   990
  6.    LinkTopic       =   "Form1"
  7.    ScaleHeight     =   4440
  8.    ScaleWidth      =   5895
  9.    Top             =   1185
  10.    Width           =   6015
  11.    Begin Frame Frame2 
  12.       Caption         =   "Server Information Structure"
  13.       Height          =   1695
  14.       Left            =   120
  15.       TabIndex        =   14
  16.       Top             =   2160
  17.       Width           =   5655
  18.       Begin Label Label16 
  19.          Alignment       =   1  'Right Justify
  20.          Caption         =   "Internet bridge support:"
  21.          Height          =   255
  22.          Left            =   3000
  23.          TabIndex        =   34
  24.          Top             =   1320
  25.          Width           =   2055
  26.       End
  27.       Begin Label Label15 
  28.          Alignment       =   1  'Right Justify
  29.          Caption         =   "Security level:"
  30.          Height          =   255
  31.          Left            =   3720
  32.          TabIndex        =   33
  33.          Top             =   1080
  34.          Width           =   1335
  35.       End
  36.       Begin Label Label12 
  37.          Alignment       =   1  'Right Justify
  38.          Caption         =   "Virtual console version:"
  39.          Height          =   255
  40.          Left            =   3000
  41.          TabIndex        =   32
  42.          Top             =   840
  43.          Width           =   2055
  44.       End
  45.       Begin Label Label11 
  46.          Alignment       =   1  'Right Justify
  47.          Caption         =   "Print server version:"
  48.          Height          =   255
  49.          Left            =   3240
  50.          TabIndex        =   31
  51.          Top             =   600
  52.          Width           =   1815
  53.       End
  54.       Begin Label Label10 
  55.          Alignment       =   1  'Right Justify
  56.          Caption         =   "Queuing version:"
  57.          Height          =   255
  58.          Left            =   3600
  59.          TabIndex        =   30
  60.          Top             =   360
  61.          Width           =   1455
  62.       End
  63.       Begin Label Label9 
  64.          Alignment       =   1  'Right Justify
  65.          Caption         =   "VAP version:"
  66.          Height          =   255
  67.          Left            =   720
  68.          TabIndex        =   29
  69.          Top             =   1320
  70.          Width           =   1215
  71.       End
  72.       Begin Label Label3 
  73.          Alignment       =   1  'Right Justify
  74.          Caption         =   "Accounting version:"
  75.          Height          =   255
  76.          Left            =   120
  77.          TabIndex        =   28
  78.          Top             =   1080
  79.          Width           =   1815
  80.       End
  81.       Begin Label InternetBridgeSupportLabel 
  82.          Height          =   255
  83.          Left            =   5280
  84.          TabIndex        =   27
  85.          Top             =   1320
  86.          Width           =   255
  87.       End
  88.       Begin Label Label14 
  89.          Alignment       =   1  'Right Justify
  90.          Caption         =   "TTS level:"
  91.          Height          =   255
  92.          Left            =   960
  93.          TabIndex        =   26
  94.          Top             =   840
  95.          Width           =   975
  96.       End
  97.       Begin Label Label13 
  98.          Alignment       =   1  'Right Justify
  99.          Caption         =   "SFT level:"
  100.          Height          =   255
  101.          Left            =   960
  102.          TabIndex        =   25
  103.          Top             =   600
  104.          Width           =   975
  105.       End
  106.       Begin Label Label8 
  107.          Alignment       =   1  'Right Justify
  108.          Caption         =   "Version:"
  109.          Height          =   255
  110.          Left            =   1200
  111.          TabIndex        =   24
  112.          Top             =   360
  113.          Width           =   735
  114.       End
  115.       Begin Label SecurityLevelLabel 
  116.          Height          =   255
  117.          Left            =   5280
  118.          TabIndex        =   23
  119.          Top             =   1080
  120.          Width           =   255
  121.       End
  122.       Begin Label VirtualConsoleVersionLabel 
  123.          Height          =   255
  124.          Left            =   5280
  125.          TabIndex        =   22
  126.          Top             =   840
  127.          Width           =   255
  128.       End
  129.       Begin Label PrintServerVersionLabel 
  130.          Height          =   255
  131.          Left            =   5280
  132.          TabIndex        =   21
  133.          Top             =   600
  134.          Width           =   255
  135.       End
  136.       Begin Label QueueVersionLabel 
  137.          Height          =   255
  138.          Left            =   5280
  139.          TabIndex        =   20
  140.          Top             =   360
  141.          Width           =   255
  142.       End
  143.       Begin Label VAPVersionLabel 
  144.          Height          =   255
  145.          Left            =   2040
  146.          TabIndex        =   19
  147.          Top             =   1320
  148.          Width           =   255
  149.       End
  150.       Begin Label AccountingVersionLabel 
  151.          Height          =   255
  152.          Left            =   2040
  153.          TabIndex        =   18
  154.          Top             =   1080
  155.          Width           =   255
  156.       End
  157.       Begin Label TTSLevelLabel 
  158.          Height          =   255
  159.          Left            =   2040
  160.          TabIndex        =   17
  161.          Top             =   840
  162.          Width           =   855
  163.       End
  164.       Begin Label SFTLevelLabel 
  165.          Height          =   255
  166.          Left            =   2040
  167.          TabIndex        =   16
  168.          Top             =   600
  169.          Width           =   855
  170.       End
  171.       Begin Label VersionLabel 
  172.          Height          =   255
  173.          Left            =   2040
  174.          TabIndex        =   15
  175.          Top             =   360
  176.          Width           =   855
  177.       End
  178.    End
  179.    Begin Frame Frame1 
  180.       Caption         =   "Server Description Strings"
  181.       Height          =   1455
  182.       Left            =   120
  183.       TabIndex        =   5
  184.       Top             =   600
  185.       Width           =   5655
  186.       Begin Label Label4 
  187.          Alignment       =   1  'Right Justify
  188.          Caption         =   "Company:"
  189.          Height          =   252
  190.          Left            =   960
  191.          TabIndex        =   13
  192.          Top             =   240
  193.          Width           =   972
  194.       End
  195.       Begin Label Label5 
  196.          Alignment       =   1  'Right Justify
  197.          Caption         =   "Revision:"
  198.          Height          =   252
  199.          Left            =   960
  200.          TabIndex        =   12
  201.          Top             =   480
  202.          Width           =   972
  203.       End
  204.       Begin Label Label6 
  205.          Alignment       =   1  'Right Justify
  206.          Caption         =   "Revision date:"
  207.          Height          =   252
  208.          Left            =   600
  209.          TabIndex        =   11
  210.          Top             =   720
  211.          Width           =   1332
  212.       End
  213.       Begin Label Label7 
  214.          Alignment       =   1  'Right Justify
  215.          Caption         =   "Copyright notice:"
  216.          Height          =   252
  217.          Left            =   480
  218.          TabIndex        =   10
  219.          Top             =   960
  220.          Width           =   1452
  221.       End
  222.       Begin Label CompanyLabel 
  223.          Height          =   252
  224.          Left            =   2040
  225.          TabIndex        =   9
  226.          Top             =   240
  227.          Width           =   3372
  228.       End
  229.       Begin Label RevisionLabel 
  230.          Height          =   252
  231.          Left            =   2040
  232.          TabIndex        =   8
  233.          Top             =   480
  234.          Width           =   3372
  235.       End
  236.       Begin Label RevisionDateLabel 
  237.          Height          =   252
  238.          Left            =   2040
  239.          TabIndex        =   7
  240.          Top             =   720
  241.          Width           =   3372
  242.       End
  243.       Begin Label CopyrightLabel 
  244.          Height          =   444
  245.          Left            =   2040
  246.          TabIndex        =   6
  247.          Top             =   960
  248.          Width           =   3372
  249.       End
  250.    End
  251.    Begin CommandButton OKButton 
  252.       Caption         =   "&OK"
  253.       Height          =   375
  254.       Left            =   2520
  255.       TabIndex        =   0
  256.       Top             =   3960
  257.       Width           =   855
  258.    End
  259.    Begin Label ServerTimeLabel 
  260.       Height          =   252
  261.       Left            =   2160
  262.       TabIndex        =   4
  263.       Top             =   360
  264.       Width           =   2652
  265.    End
  266.    Begin Label Label2 
  267.       Alignment       =   1  'Right Justify
  268.       Caption         =   "Server date and time:"
  269.       Height          =   255
  270.       Left            =   120
  271.       TabIndex        =   3
  272.       Top             =   360
  273.       Width           =   1935
  274.    End
  275.    Begin Label ServerNameLabel 
  276.       Height          =   252
  277.       Left            =   2160
  278.       TabIndex        =   2
  279.       Top             =   120
  280.       Width           =   2532
  281.    End
  282.    Begin Label Label1 
  283.       Alignment       =   1  'Right Justify
  284.       Caption         =   "Default file server:"
  285.       Height          =   255
  286.       Left            =   240
  287.       TabIndex        =   1
  288.       Top             =   120
  289.       Width           =   1815
  290.    End
  291. End
  292.  
  293. Sub Form_Load ()
  294.     Dim dateAndTime As DATE_AND_TIME
  295.     Dim serverInfo As FILE_SERV_INFO
  296.     
  297.     fileServerName$ = String$(48, 0)
  298.     fileServerName$ = GetDefaultFileServerName()
  299.     ServerNameLabel.Caption = fileServerName$
  300.     
  301.     GetFileServerDateAndTime dateAndTime
  302.     temp$ = Format$(Asc(dateAndTime.month), "00") + "/" + Format$(Asc(dateAndTime.date), "00") + "/" + Format$(Asc(dateAndTime.year), "00")
  303.     temp$ = temp$ + " " + Format$(Asc(dateAndTime.hour), "00") + ":" + Format$(Asc(dateAndTime.minute), "00") + ":" + Format$(Asc(dateAndTime.second), "00")
  304.     ServerTimeLabel.Caption = temp$
  305.     
  306.     companyName$ = String$(80, 0)
  307.     revision$ = String$(80, 0)
  308.     revisionDate$ = String$(24, 0)
  309.     copyrightNotice$ = String$(80, 0)
  310.     ccode% = GetFileServerDescriptionStrings(companyName$, revision$, revisionDate$, copyrightNotice$)
  311.     If (ccode% = SUCCESSFUL) Then
  312.         CompanyLabel.Caption = companyName$
  313.         RevisionLabel.Caption = revision$
  314.         RevisionDateLabel.Caption = revisionDate$
  315.         CopyrightLabel.Caption = copyrightNotice$
  316.     Else
  317.         MsgBox "Unable to get file server description strings", MB_OK, "Error"
  318.     End If
  319.  
  320.     ccode% = GetServerInformation(Len(serverInfo), serverInfo)
  321.     If (ccode% = SUCCESSFUL) Then
  322.         VersionLabel.Caption = Format$(Asc(serverInfo.netwareVersion)) + "." + Format$(Asc(serverInfo.netwareSubVersion)) + Chr$(Asc(serverInfo.revisionLevel) + Asc("a"))
  323.         SFTLevelLabel.Caption = Format$(Asc(serverInfo.SFTLevel))
  324.         TTSLevelLabel.Caption = Format$(Asc(serverInfo.TTSLevel))
  325.         AccountingVersionLabel.Caption = Format$(Asc(serverInfo.accountingVersion))
  326.         VAPVersionLabel.Caption = Format$(Asc(serverInfo.VAPversion))
  327.         QueueVersionLabel.Caption = Format$(Asc(serverInfo.queueingVersion))
  328.         PrintServerVersionLabel.Caption = Format$(Asc(serverInfo.printServerVersion))
  329.         VirtualConsoleVersionLabel.Caption = Format$(Asc(serverInfo.virtualConsoleVersion))
  330.         SecurityLevelLabel.Caption = Format$(Asc(serverInfo.securityRestrictionLevel))
  331.         InternetBridgeSupportLabel = Format$(Asc(serverInfo.internetBridgeSupport))
  332.     Else
  333.         MsgBox "Unable to get file server information structure", MB_OK, "Error"
  334.     End If
  335. End Sub
  336.  
  337. Sub OKButton_Click ()
  338.     Unload FSEForm
  339. End Sub
  340.  
  341.