PlanetSquires Forums

Support Forums => General Board => Topic started by: xstreur on February 15, 2017, 10:40:45 AM

Title: Creating Windows Service
Post by: xstreur on February 15, 2017, 10:40:45 AM
Hello,

Is it possible to write create a windows service in FreeBasic. Could someone direct me to some example.

Thanks in advance.
Title: Re: Creating Windows Service
Post by: Pierre Bellisle on February 15, 2017, 01:31:56 PM
Hi,

It's definitely possible to write a service in FB.

Have a look at win/winsvc.bi
Some keyword to search for: OpenSCManager OpenService QueryServiceStatusEx ControlService EnumDependentServices

This said, I didn't saw much using Google regarding FreeBasic.
And I didn't wrote any service yet in FB but I wrote a couple using PowerBASIC.
There are some good examples there, and they should be not so hard to migrate.

Pierre
Title: Re: Creating Windows Service
Post by: Pierre Bellisle on May 30, 2017, 11:50:23 PM
See: FreeBASIC Windows Service (http://www.freebasic.net/forum/viewtopic.php?f=6&t=25713)