VERSION 5.00
Begin VB.Form JobQ 
   BorderStyle     =   3  'Œ޲۸
   Caption         =   "ޮ޷擾"
   ClientHeight    =   2610
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   6030
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2610
   ScaleWidth      =   6030
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox TextCURENTRYJOB 
      Height          =   270
      Left            =   2520
      TabIndex        =   9
      Top             =   2040
      Width           =   1935
   End
   Begin VB.TextBox TextCURRUNNINGJOB 
      Height          =   270
      Left            =   2520
      TabIndex        =   8
      Top             =   1680
      Width           =   1935
   End
   Begin VB.TextBox TextCondition 
      Height          =   270
      Left            =   2520
      TabIndex        =   7
      Top             =   1320
      Width           =   1935
   End
   Begin VB.TextBox TextQueName 
      Height          =   270
      Left            =   360
      TabIndex        =   2
      Text            =   "ޮ޷"
      Top             =   720
      Width           =   2175
   End
   Begin VB.CommandButton CancelButton 
      Caption         =   "ݾ"
      Height          =   375
      Left            =   4680
      TabIndex        =   1
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "OK"
      Height          =   375
      Left            =   4680
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label Label4 
      Caption         =   "ݓo^ς݃Wu"
      Height          =   255
      Left            =   240
      TabIndex        =   6
      Top             =   2040
      Width           =   1815
   End
   Begin VB.Label Label3 
      Caption         =   "ݎsWu"
      Height          =   255
      Left            =   240
      TabIndex        =   5
      Top             =   1680
      Width           =   1575
   End
   Begin VB.Label Label2 
      Caption         =   ""
      Height          =   255
      Left            =   240
      TabIndex        =   4
      Top             =   1320
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "ޮ޷͂OKIĂBIɂͷݾقIĂB"
      Height          =   375
      Left            =   360
      TabIndex        =   3
      Top             =   240
      Width           =   3495
   End
End
Attribute VB_Name = "JobQ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub CancelButton_Click()
    Unload JobQ
End Sub

Private Sub OKButton_Click()
    Dim JobQInfo As JMSSJOBQINFO    'WuL[\
    Dim lRet As Long
    JobQInfo.dwSize = 44
    
    lRet& = JmssGetJobQueue(vbNullString, TextQueName.Text, JobQInfo)
    If (lRet& <> 0) Then
        ErrorMsg lRet&
    Else
        Select Case JobQInfo.dwJobQueCondition
            Case JMSS_JOBQUECOND_OPEN
                TextCondition.Text = "J"
            Case JMSS_JOBQUECOND_CLOSE
                TextCondition.Text = ""
        End Select
        TextCURRUNNINGJOB.Text = JobQInfo.dwCurRunningJob
        TextCURENTRYJOB.Text = JobQInfo.dwCurrentEntryJob
    End If
End Sub

Private Sub Text1_Change()

End Sub
