VERSION 5.00 Begin VB.Form ServerTestForm Caption = "BS_SDK Server Test" ClientHeight = 4635 ClientLeft = 60 ClientTop = 450 ClientWidth = 4470 LinkTopic = "Form1" ScaleHeight = 4635 ScaleWidth = 4470 StartUpPosition = 3 'Windows ±âº»°ª Begin VB.TextBox txtResult Height = 2415 Left = 120 MultiLine = -1 'True ScrollBars = 2 '¼öÁ÷ TabIndex = 9 Top = 2040 Width = 4215 End Begin VB.Frame Frame1 Caption = "Issue Certificate / Start Log Monitoring" Height = 1215 Left = 120 TabIndex = 2 Top = 720 Width = 4215 Begin VB.CommandButton cmdStartLog Caption = "Start Log" Height = 375 Left = 2280 TabIndex = 8 Top = 720 Width = 1695 End Begin VB.TextBox txtBst Height = 270 Left = 3255 TabIndex = 7 Top = 350 Width = 840 End Begin VB.TextBox txtHandle Height = 270 Left = 855 TabIndex = 6 Top = 350 Width = 720 End Begin VB.CommandButton cmdIssue Caption = "Issue" Height = 375 Left = 240 TabIndex = 5 Top = 720 Width = 1695 End Begin VB.Label Label2 Caption = "BioStation ID" Height = 255 Left = 2040 TabIndex = 4 Top = 360 Width = 1095 End Begin VB.Label Label1 Caption = "Handle" Height = 255 Left = 120 TabIndex = 3 Top = 360 Width = 615 End End Begin VB.CommandButton cmdStop Caption = "Stop Service" Height = 495 Left = 2400 TabIndex = 1 Top = 120 Width = 1935 End Begin VB.CommandButton cmdStart Caption = "Start Servcie" Height = 495 Left = 120 TabIndex = 0 Top = 120 Width = 2175 End End Attribute VB_Name = "ServerTestForm" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub cmdIssue_Click() Dim result As Long Dim handle As Long Dim ID As Long handle = Val(txtHandle.Text) ID = Val(txtBst.Text) result = BS_IssueCertificate(handle, ID) BS_CloseSocket (haneld) 'must be called End Sub Private Sub cmdStart_Click() Dim result As Long result = BS_SetCallback(ServerEvent.BS_SERVER_CB_CONN_NOAUTH, AddressOf ReceiveEvent) result = BS_SetCallback(ServerEvent.BS_SERVER_CB_CONN_SSL, AddressOf ReceiveEvent) result = BS_SetCallback(ServerEvent.BS_SERVER_CB_CONN_LOG, AddressOf ReceiveEvent) result = BS_SetCallback(ServerEvent.BS_SERVER_CB_DISCONN_NOAUTH, AddressOf ReceiveEvent) result = BS_SetCallback(ServerEvent.BS_SERVER_CB_DISCONN_SSL, AddressOf ReceiveEvent) result = BS_SetCallback(ServerEvent.BS_SERVER_CB_LOG, AddressOf ReceiveEvent) result = BS_StartServerApp(1480, 32, "C:\\OpenSSL\\bin\\openssl.exe", "12345678", 100) txtResult.Text = "Start Service..." End Sub Private Sub cmdStartLog_Click() Dim result As Long result = BS_StartLogMonitoring(Val(txtHandle.Text)) End Sub Private Sub cmdStop_Click() Dim result As Long result = BS_StopServerApp() txtResult.Text = txtResult.Text + Chr(13) + Chr(10) + "Stop Service..." End Sub Private Sub Form_Load() Dim result As Long result = BS_InitSDK() End Sub