Utility function - deprecated in OI 10

The Utility function is the OpenInsight interface to the Windows API, which provides a series of services that can be used to perform various tasks.

One of the things we have tried to do in OpenInsight 10 is to tidy up and standardize the interface between your Basic+ programs and the Presentation Server, providing a standard object-based model based on properties, methods and events. The Utility function has always been an exception to this however, essentially providing a shorthand way of executing what should be SYSTEM object methods, thereby breaking the paradigm.

In light of this the Utility function has been deprecated and its functionality exposed as properties and methods of the SYSTEM and FILESYSTEM objects instead. Utility itself still works, but it is now a shell that maps to the two aforementioned objects.

The Utility services map to the SYSTEM and FILESYSTEM objects in the following manner:

Utility ServiceObjectType
BEEPSYSTEMMethod
COPYFILEFILESYSTEMMethod
CREATESYSTEMMethod
CURSORSYSTEMProperty[S]
CHOOSECOLORSYSTEMMethod
CHOOSEFONTSYSTEMMethod
CHOOSEFILESYSTEMMethod
CHOOSEDIRSYSTEMMethod
DESTROYSYSTEMMethod
DIALOG_BOXSYSTEMMethod
FLUSHSYSTEMMethod
GET_EVENTSYSTEMMethod
GETLOGICALDRIVESFILESYSTEMProperty[G](DRIVELIST)
HANDLE_BY_CURSORSYSTEMMethod
HOOKCTRLSYSTEMMethod
IUNKNOWN_RELEASESYSTEMMethod
LOAD_PICTURESYSTEMMethod
MAKEDIRFILESYSTEMMethod
OBJECTIDSYSTEMMethod
OPENAPPSYSTEMMethod
OBJECT_BY_CURSORSYSTEMMethod
OBJECTLISTSYSTEMMethod
PRINTSETUPSYSTEMMethod
POST_WINMSGSYSTEMMethod
PICTURE_PROPSSYSTEMMethod
REMOVEDIRFILESYSTEMMethod
RENAMEDIRFILESYSTEMMethod
RENAMEFILEFILESYSTEMMethod
RUNSYSTEMMethod
RUNHELPSYSTEMMethod
RUNWINSYSTEMMethod
SHELLEXECUTESYSTEMMethod
SEND_WINMSGSYSTEMMethod
TEXTRECTSYSTEMMethod
UNHOOKCTRLSYSTEMMethod
WINCOUNTSYSTEMProperty[G]
WINDOW_BY_POSSYSTEMMethod

returnvalue = Utility(<Service> [, <object>] [,<value>])

See documentation for each service for more information.

BEEP Service

DESTROY Service

REMOVEDIR Service

CHOOSECOLOR Service

FLUSH Service

RENAMEDIR Service

CHOOSEDIR Service

GET_EVENT Service

RENAMEFILE Service

CHOOSEFILE Service

GETLOGICALDRIVES Service

RUNHELP Service

CHOOSEFONT Service

MAKEDIR Service

RUNWIN Service

COPYFILE Service

OBJECTID Service

TEXTRECT Service

CREATE Service

OBJECTLIST Service

WINCOUNT Service

CURSOR Service

PRINTSETUP Service

Utility function

HANDLE_BY_CURSOR Service

IUNKNOWN_RELEASE Service

LOAD_PICTURE Service

OBJECT_BY_CURSOR Service

PICTURE_PROPS Service

SYSTEM Object

FILESYSTEM Object

Exec_Method Function

  • guides/programming/programmers_reference_manual/utility.txt
  • Last modified: 2024/10/14 18:18
  • by 127.0.0.1