The Context Object - Script2Service Programming Interface

Document Path: Home Page / Programming / Script2Service / Interfaces / Context Object  
Introduction

The Context object is exposed to scripts inside the service only. From this object, scripts inside the service get access to other objects implemented by Script2Service, such as Sockets Manager, Internet, etc.

Properties FileSystem Globals Internet Property Service SocketsManager Thread ThreadMan TickCount
Methods CreateBufferObject CreateGUID CreateObject CreateProcessObject CreateProxyBlanket CreateTimeObject CreateTimeSpanObject GetActiveObject GetSystemTime Idle LogEvent SetSystemTime StopService
Properties

FileSystem

Value File System
Access Get
Notes

Globals

Value Globals Object
Access Get
Notes

Internet

Value Internet Object
Access Get
Notes

Property

Value VARIANT
Arguments:
  • BSTR name
Access Get, Put
Notes

Service

Value Service Object
Access Get
Notes

SocketsManager

Value Sockets Manager Object
Access Get
Notes

Thread

Value Thread Object
Access Get
Notes

ThreadMan

Value Thread Manager object
Access Get
Notes

TickCount

Value ULONG
Access Get
Notes
Methods

CreateBufferObject

Return Value Buffer Object
Notes

CreateGUID

Return Value BSTR
Notes

CreateObject

Return Value Object
Arguments:
  • BSTR progIDorCLSID
Notes
Create an ActiveX object of local computer.

CreateProcessObject

Return Value Process Object
Notes

CreateProxyBlanket

Return Value Proxy Blanket Object
Notes

CreateTimeObject

Return Value Time Object
Notes

CreateTimeSpanObject

Return Value Time Span Object
Notes

GetActiveObject

Return Value Object
Arguments:
  • BSTR clsid
Notes

GetSystemTime

Return Value Time Object
Notes

Idle

Return Value
Arguments:
  • ULONG ms
Notes

LogEvent

Return Value
Arguments:
  • BSTR message
  • USHORT type (Optional, default(4))
Notes

SetSystemTime

Return Value BOOL
Arguments:
  • VARIANT dt
Notes

StopService

Return Value
Notes