Caption = "╟ift t²klayarak istedi≡iniz hizmetin ■u anki durumu hakk²nda bilgi alabilirsiniz."
BeginProperty Font
Name = "Small Fonts"
Size = 6.75
Charset = 162
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2640
TabIndex = 3
Top = 4200
Visible = 0 'False
Width = 3375
End
Begin VB.Menu MnuService
Caption = "Hizmet"
Visible = 0 'False
Begin VB.Menu MnuQuery
Caption = "Sorgula"
End
Begin VB.Menu MnuSep1
Caption = "-"
End
Begin VB.Menu MnuStart
Caption = "Ba■lat"
End
Begin VB.Menu MnuStop
Caption = "Durdur"
End
Begin VB.Menu MnuPause
Caption = "Duraklat"
End
Begin VB.Menu MnuResume
Caption = "Sⁿrdⁿr"
End
End
End
Attribute VB_Name = "FrmServices"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Const ERROR_MORE_DATA = 234
Const SERVICE_ACTIVE = &H1
Const SERVICE_INACTIVE = &H2
Const SC_MANAGER_ENUMERATE_SERVICE = &H4
Const SERVICE_WIN32_OWN_PROCESS As Long = &H10
Const SERVICE_WIN32_SHARE_PROCESS As Long = &H20
Const SERVICE_WIN32 As Long = SERVICE_WIN32_OWN_PROCESS + SERVICE_WIN32_SHARE_PROCESS
Private Type SERVICE_STATUS
dwServiceType As Long
dwCurrentState As Long
dwControlsAccepted As Long
dwWin32ExitCode As Long
dwServiceSpecificExitCode As Long
dwCheckPoint As Long
dwWaitHint As Long
End Type
Private Type ENUM_SERVICE_STATUS
lpServiceName As Long
lpDisplayName As Long
ServiceStatus As SERVICE_STATUS
End Type
Private Declare Function OpenSCManager Lib "advapi32.dll" Alias "OpenSCManagerA" (ByVal lpMachineName As String, ByVal lpDatabaseName As String, ByVal dwDesiredAccess As Long) As Long
Private Declare Function EnumServicesStatus Lib "advapi32.dll" Alias "EnumServicesStatusA" (ByVal hSCManager As Long, ByVal dwServiceType As Long, ByVal dwServiceState As Long, lpServices As Any, ByVal cbBufSize As Long, pcbBytesNeeded As Long, lpServicesReturned As Long, lpResumeHandle As Long) As Long
Private Declare Function CloseServiceHandle Lib "advapi32.dll" (ByVal hSCObject As Long) As Long
Private Declare Function lstrcpy Lib "kernel32.dll" Alias "lstrcpyA" (szDest As String, szcSource As Long) As Long
Dim ArrRegSvc() As String
Dim MousePressed As Boolean
Dim ObjService As ClsService
Private Sub BtnCancel_Click()
Unload Me
End Sub
Private Sub BtnOK_Click()
Dim FlgExist As Boolean
Dim AddSvcCnt As Integer
For AddSvcCnt = 0 To List1.ListCount - 1
If List1.Selected(AddSvcCnt) Then
If FrmSetup.LstServices.ListCount > 0 Then
For X = 0 To UBound(ArrServices, 2) - 1
If StrComp(ArrRegSvc(List1.ListIndex), ArrServices(0, X)) = 0 Then