Provides a reference to the context’s host object.

ContextInformation objects
servicereference.GetHostObject ( hostobject )
| Argument | Description | 
|---|---|
| servicereference | Reference to the Context Information service instance | 
| hostobject | PowerObject into which the function places a reference to the ActiveX automation server object | 
Integer. Returns 1 if the function succeeds and -1 if an error occurs. In PocketBuilder applications, GetHostObject always returns -1.
Call this function to obtain a reference to the context object model.
 PocketBuilder environments
The host object in a PocketBuilder application is an empty
object—it fails the isValid(obj) test.
PocketBuilder environments
The host object in a PocketBuilder application is an empty
object—it fails the isValid(obj) test.