The Boling book (Programming Microsoft Windows CE .NET, 3d edition)
comes with a bunch of examples on a CD.

The example in chapter 22 on how to create a Windows CE Service comes
with a file service.h which describes itself as "Defines programming
model for Windows CE Services".

A bunch of macros are defined there. I've found descriptions of a couple
of them on the net, with enough information to reconstruct them.

For some however, that is not the case.

E.g.
http://www.pocketpcjunkies.com/Uwe/Forum.aspx/pocketpc-dev/7975/IR-application-on-pocket-pc-2002
defines :
        FILE_DEVICE_SERVICE
        IOCTL_SERVICE_START
        IOCTL_SERVICE_STOP
        IOCTL_SERVICE_STATUS

Here's an example :
#define IOCTL_SERVICE_START     CTL_CODE(FILE_DEVICE_SERVICE, 1,
METHOD_BUFFERED, FILE_ANY_ACCESS)

but the 15 other IOCTL_SERVICE_* macros aren't defined there. They're in
Boling's service.h though. All I really need are the numbers (where it
says 1 in the example above).

That same service.h appears can be found in the wild too.

The EULA on the book and the companion CD say that it is ok to use the
sample source code but not to redistribute it.

For a couple of the macros, it is possible to get their value by
experiment. For others, it isn't.

Would it be ok to read service.h (this would be the way I "use" the
file) and get the numbers from it ?

        Danny

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to