PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Creating Windows Service  (Read 627 times)

xstreur

  • FireFly3 User
  • Little Newbie FireFly
  • *
  • Posts: 7
  • Windows 7/Linux (CentOS 7)
    • XS4IT/Frans Streur
Creating Windows Service
« on: February 15, 2017, 10:10:45 AM »

Hello,

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

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

Pierre Bellisle

  • FireFly3 User
  • Junior FireFly Member
  • *
  • Posts: 57
Re: Creating Windows Service
« Reply #1 on: February 15, 2017, 01:01: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
Logged

Pierre Bellisle

  • FireFly3 User
  • Junior FireFly Member
  • *
  • Posts: 57
Re: Creating Windows Service
« Reply #2 on: May 30, 2017, 11:20:23 PM »

Logged