Supported Browsers Home   
PM_inpw Previous   
PM_installServiceExt Next   
External Functions Up   

PM_installService

Installs a Windows NT/2000/XP service.

Declaration

ulong PMAPI PM_installService(
    const char *szDriverName,
    const char *szServiceName,
    const char *szLoadGroup,
    ulong dwServiceType)

Prototype In

pmapi.h

Parameters

szDriverName

Actual name of the driver to install in the system

szServiceName

Name of the service to create

szLoadGroup

Load group for the driver (NULL for normal drivers)

dwServiceType

Service type to create

 

Return Value

ERROR_SUCCESS on success, error code on failure.

Description

This function does all the work to install the system service into the system (ie: a Windows NT style device driver). The driver is not however activated; for that you must use the PM_startService function. This version always creates the service with the SERVICE_BOOT_START start type.

Note:    This function is Windows specific! It is quite useful so it is documented here.

See Also

PM_installServiceExt, PM_startService, PM_stopService, PM_removeService

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com