The Service Object - Script2Service Programming Interface
Introduction
This is only object exposed to applications outside of the service. The following line shows how a outside application get a service object:
var svc=new ActiveXObject("{D5572CF6-36E2-4312-A662-72D79B81B6DC}");
Where '{D5572CF6-36E2-4312-A662-72D79B81B6DC}' is the AppID of the service.
Properties
IsService
| Value |
BOOL |
| Access |
Get |
| Notes |
true: the program is running as service
false: the program is running in interactive mode
|
ServiceDisplayName
| Value |
BSTR |
| Access |
Get |
| Notes |
|
ServiceName
| Value |
BSTR |
| Access |
Get |
| Notes |
|
Methods
CallFunction
| Return Value |
VARIANT |
| Arguments: |
- BSTR scriptName
- BSTR functionName
- Arguments (Optional, default(0))
|
| Notes |
|
CreateFunctionArguments
GetStop
StartThread
| Return Value |
Thread Object |
| Arguments: |
- BSTR scriptName
- BSTR functionName
- Arguments (Optional, default(0))
- int priority (Optional, default(0))
|
| Notes |
|