NTService20.Controller ActiveX DLL



Identification

NTService20.Controller

Description

The Controller Component is an ActiveX DLL written in Visual Basic that allows developer to enable their applications as windows services. Supports Windows ME and NT or later Windows OS services, using a Microsoft developed component NTService.ocx, Neotextís implementation is designed to be a drop loading DLL (as VB6 applications do, ending the program should there be nothing else active in memory) that restricts installation/un-installation to the parent housing the component for design ethic purposes to service debugging challenges. A feature of NTService20 is that is does provide well conformity equality with out additional system setup to the thoroughness of a NT service for Windows ME servicing in single compatibility, legacy as it maybe covered grounds spare no protest.

Events

StartService (Success)

Parameters

Success Boolean

This should be set to true when receiving this event.

Description

This event is fired when the service controller starts. This event is called when the StartUp method is used and the StartUp method should not be called from with in the StartService Event.

StopService

Description

This event is fired when the service controller stops. This event is called when the StopIt method is used and the StopIt method should not be called from with in the StopService Event.

PauseService (Success)

Parameters

Success Boolean

This should be set to true when receiving this event.

Description

This event is fired when the service controller pauses. This event is not supported in Windows 98/ME.

ContinueService (Success)

Parameters

Percent Long

This should be set to true when receiving this event.

Description

This event is fired when the service controller continues from being paused. This event is not supported in Windows 98/ME.

Properties

IsWindowsNT (Boolean) (ReadOnly)

Description

This is true if the operating system is Window NT or Windows 2K.

ServiceName (String)

Description

Set a unique name to identify this service with.

DisplayName (String)

Description

Sets a display name that shows under service control panel.

ExecuteName (String)

Description

The executable filename of the program to be serviced.

Interactive (Boolean)

Description

Sets if the service will have a GUI interface for users to interact with.

AutoStart (Boolean)

Description

Sets if the service should automatically run when the system starts up.

Account (String)

Description

Sets the local account name for the service to run under, default is LocalSystem. This property is only used in Windows NT and Windows 2K operating systems.

Password (String)

Description

Sets the password associated with the account property. This property is only used in Windows NT and Windows 2K operating systems.

Functions

Install () Boolean

Description

Installs the service into the operating system, should only be used once or until the uninstall function has been issued. Returns True if the service was successfully installed.

Uninstall () Boolean

Description

Uninstalls the service from the operating system, should only be used once after the install function is issued. Returns True if the service was successfully uninstalled.

StartUp ()

Description

This function should be invoked when the service is starting up, for instance in the initial main program execution when it first is run. It tells the controller to actually start the program as a service which then will call the StartService event. This method should not be called from with in the StartService method.

StopIt ()

Description

This function stops the service and also raises the StopService event so it should not be called with in the StopService event. This method is for internal shutting down of the service, to stop or start a service, external methods such as net.exe or mmc.exe should be used.

Automation

Object:Init (self)

Parameters

self Object

A reference to the object.

Description

Optional event that is called when the object is initialized.

Object:Term (self)

Parameters

self Object

A reference to the object.

Description

Optional event that is called when the object is terminated.