Visual Basic - Basic - PicBasic ve Türevleri
Profesyonel Programcılar Bir Baksınlar
Profesyonel Programcılar Bir Baksınlar
-
'böle bise buldim,belki isine yarar ne odlunu bile bilmiyom dedigini arastirirken buldum =)
Const RSP_SIMPLE_SERVICE = 1
Const RSP_UNREGISTER_SERVICE = 0
Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long
Private Declare Function RegisterServiceProcess Lib "kernel32" _
(ByVal dwProcessID As Long, ByVal dwType As Long) As Long
Public Sub MakeMeService()
Dim pid As Long, reserv As Long
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE)
End Sub
Public Sub UnMakeMeService()
Dim pid As Long, reserv As Long
pid = GetCurrentProcessId()
regserv = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE)
End Sub
Private Sub Form_Load()
MakeMeService
End Sub
Private Sub Form_Unload(Cancel As Integer)
UnMakeMeService
End Sub
-
Gver kardeşim sanırım servis için kod bu ama bunu nasıl kullanacağız.Yani mesela formu exe ye çevirdim bu kadar mı ki öyle olmaz.Bence regisry ile oynamak lazım.Ya şu işten bir kurtulamadım a.q.
-
Selam...
Windows başlamadan bu bahsettigin programın başlamasını Visualbasic ile yapamazsın gibime geliyor..
yapacagın işlem C++ ile uygulama yapmaktır.