Creating Windows Service

Started by xstreur, February 15, 2017, 10:40:45 AM

Previous topic - Next topic

xstreur

Hello,

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

Thanks in advance.
Cheers
Frans (X.I.E.M.) Streur
--------------------------------------------
Windows 7 SP1
Freebasic 1.05
FireFly 3.78

Pierre Bellisle

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