ACCU Home page ACCU Conference Page
Search Contact us ACCU at Flickr ACCU at GitHib ACCU at Facebook ACCU at Linked-in ACCU at Twitter Skip Navigation

Search in Book Reviews

The ACCU passes on review copies of computer books to its members for them to review. The result is a large, high quality collection of book reviews by programmers, for programmers. Currently there are 1949 reviews in the database and more every month.
Search is a simple string search in either book title or book author. The full text search is a search of the text of the review.
    View all alphabetically
Title:
Programming Windows Services
Author:
Randy Morin
ISBN:
0 471 38576 X
Publisher:
Wiley
Pages:
428pp + CD
Price:
£35-95
Reviewer:
David Nash
Subject:
microsoft
Appeared in:
14-4
The subtitle of this book is 'Implementing Application Servers' by which the author means programs designed to run continuously, responding to calls from clients. What the Unix user would call daemons, in fact and he does point this out - even giving the etymology of the word! In the Windows world such things are usually implemented as NT Services or, now that we are several versions on from NT, simply Windows Services as the title indicates.

So can you fill a book on the subject of how to write a Windows Service? Probably not, but this book doesn't try to. Only the first 2 chapters are devoted to the technical details of how to write and use them. The rest of the book covers a diverse range of topics useful to the writer of these services including inter-process communications (IPC), the Windows event log, configuration and security.

The chapter on IPC is very wide-ranging, covering such things as socket communications, CORBA and of course (in a Windows book) the component object model, or COM. Because of this each subject only gets basic coverage. There are in fact other whole books twice as thick as this one on single topics from that chapter so don't expect comprehensive details, but the introduction to each is good enough to give you a flavour of what it's all about and whether or not you want to use it. The section on COM in particular scores points from me by explaining what is really going on and not just relying on the automatically generated code from the Visual Studio Wizards.

The book comes with a CD-ROM containing the sample code, which is scattered throughout the book and is generally of good quality. The author is a firm believer in using C++ in the way it was intended and is not scared to use such things as namespaces, exceptions and the standard library, only using Windows-specific types (DWORD, for example) when a call to the Windows API demands it.

The examples show how to use specific features and in several cases a generic framework is provided for the reader to use when implementing his/her own application. For example, a C++ base class is given from which your own class can be derived, thereby implementing a Windows Service simply by overriding a couple of methods.

If I had any criticism it would be simply that the book does not go into enough depth on many of the subjects covered - both core Windows services and some of the associated technologies. The SRVANY utility, for example, which comes with the NT resource kit, gets one sentence that I will quote it in full here; 'The SRVANY command-line utility can be used to convert any executable into a service'. There is no mention of where to get it, or the pros and cons and possible pitfalls of using it.

Overall a good book, clear and written in an easy to read style and to be preferred over simply choosing NT Service on the ATL AppWizard if you have to write a windows service and don't know where to begin. Recommended.Distributed Programming