I Wish I Knew How To Implement Declares with Xojo on Windows has been updated to version 2.5, August 2018. There are 22 chapters and the book contains more than 550 pages with over 100 example programs.
Windows Service Applications run in the background of the Operating System, which is similar to the Unix daemon. An example of a Service program is the background program that controls the sound on your computer.
A special thanks to @Wayne Golding and @Greg O’Lone for their help in clarifying a Xojo Service Application in the forums.
Declares are used to extend the commands and capabilities of Xojo to allow more functionality and options. For those who have purchased previous 2.x versions, this is a free update.
Added content to Version 2.5 (August 2018) are:
Added Windows Services chapter (Chapter 22)
Added TestServicesConsole app (Example22-1) 32-bit and 64-bit compatible
Added Access Rights for a Service Constants (Appendix I)
Added Service Type Constants (Appendix J)
Added Start Type Constants (Appendix K)
Added Error Control Constants (Appendix L)
Added Access Rights for the Service Control Manager (Appendix M)
Added an example to create a new service (Example 22-2) 32-bit and 64-bit compatible. Includes OpenSCManager, CreateService, and CloseServiceHandle API.
Added example to delete a service entry (Example 22-3) 32-bit and 64-bit compatible. Includes DeleteService API.
Added Example 22-4 to change the service description entry in the database with the ChangeServiceConfig2 API 32-bit and 64-bit compatible.
Added Example 22-5 to start a Service with the StartService API 32-bit and 64-bit compatible.
Added Example 22-6 to stop a Service with the ControlService API 32-bit and 64-bit compatible.
Added Example 22-7 to show the status of a service with QueryServiceStatus API 32bit and 64-bit compatible
Added Example 22-8 to pause a service with the ControlService API 32-bit and 64-bit compatible
Added Example 22-9 to resume a service with ControlService 32-bit and 64-bit compatible.
This book is a PDF document and all examples include Xojo code. No plugins are needed with this book. The Table of Contents has a listing of all examples in the book, and is on the authors website at http://scispec.ca , in the books header.
This book can be purchased at http://xdevlibrary.com