Posted: Fri Mar 16, 2007 9:31 am
Ring's NTService library is part of the PBOSL suite - and has been for quite some time. Check out http://www.purebasic.fr/english/viewtopic.php?t=17100SkyManager wrote:This link seems not working
http://www.purebasic.com
https://www.purebasic.fr/english/
Ring's NTService library is part of the PBOSL suite - and has been for quite some time. Check out http://www.purebasic.fr/english/viewtopic.php?t=17100SkyManager wrote:This link seems not working
Works fine for me, on WinXP Pro SP2.SkyManager wrote:When I run the PBOL4 example and perform a "-u" uninstallation, the NTService status is changed into "Disabled" and not remove from the NT Service list.
What can we do to fix this
I have another machine with the same config, I can give it a try - but it should work...SkyManager wrote:I am using W2K+SP4 with PB4.02
Code: Select all
#SERVICE_INTERACTIVE_PROCESS = $100
Code: Select all
T_SERVICE = CreateService_(T_SCMANAGER, AppExeName, ServiceName, #SERVICE_ALL_ACCESS, (#SERVICE_WIN32_OWN_PROCESS | #SERVICE_INTERACTIVE_PROCESS), #SERVICE_DEMAND_START, #SERVICE_ERROR_NORMAL, AppHome + AppExeFileName, 0, 0, 0, 0, 0)
techjunkie wrote:If you specify either SERVICE_WIN32_OWN_PROCESS
or SERVICE_WIN32_SHARE_PROCESS, and the service is running in the context of the LocalSystem account, you can also specify the following value.
so the service can interact with the Desktop.Code: Select all
#SERVICE_INTERACTIVE_PROCESS = $100
Example,
Code: Select all
T_SERVICE = CreateService_(T_SCMANAGER, AppExeName, ServiceName, #SERVICE_ALL_ACCESS, (#SERVICE_WIN32_OWN_PROCESS | #SERVICE_INTERACTIVE_PROCESS), #SERVICE_DEMAND_START, #SERVICE_ERROR_NORMAL, AppHome + AppExeFileName, 0, 0, 0, 0, 0)
Thanks!maw wrote:Be ware though, that in Vista, Server 2008 and all future Windows versions interactive services doesn't work! This is also true if you use Fast User Switching in XP.
Code: Select all
_WriteLog("into function ServiceMain ")
Code: Select all
Procedure ServiceMain()
;;_WriteLog("into function ServiceMain ")