usermode service on 64bits Vista

I tried to write add a service to lunch a usermode application. but wdm.h did not define a servicetype to 64bits ?

CreateService(…ServiceType…), are there anybody know how to evaluate the field “ServiceType”?

This is user mode stuff; it won’t be in ‘WDM.H.’ It’s in ‘WinSvc.H,’
but just include ‘Windows.H;’ that will pull it. This not really my
thing, but I don’t think that there is any designation for a 64 bit
service, per se. If you’re looking at the manifest constants with
‘WIN32’ in the them, they don’t mean, WIN32 in a strict sense. They
predate by quite a bit 64 bit Windows, and ‘Win32’ in general used to
serve to differentiate something from the ‘Win16’ version. It gets a
little confusing in some places.

Good luck,

mm

xxxxx@msn.com wrote:

I tried to write add a service to lunch a usermode application. but wdm.h did not define a servicetype to 64bits ?

CreateService(…ServiceType…), are there anybody know how to evaluate the field “ServiceType”?

x64 Windows can run both 32 and 64bit EXEs as services without any
additional registration.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

“Martin O’Brien” wrote in message
news:xxxxx@ntdev…
> This is user mode stuff; it won’t be in ‘WDM.H.’ It’s in ‘WinSvc.H,’
> but just include ‘Windows.H;’ that will pull it. This not really my
> thing, but I don’t think that there is any designation for a 64 bit
> service, per se. If you’re looking at the manifest constants with
> ‘WIN32’ in the them, they don’t mean, WIN32 in a strict sense. They
> predate by quite a bit 64 bit Windows, and ‘Win32’ in general used to
> serve to differentiate something from the ‘Win16’ version. It gets a
> little confusing in some places.
>
> Good luck,
>
> mm
>
>
> xxxxx@msn.com wrote:
> > I tried to write add a service to lunch a usermode application. but wdm.h
did not define a servicetype to 64bits ?
> >
> > CreateService(…ServiceType…), are there anybody know how to
evaluate the field “ServiceType”?
> >
>