codice:
'*******************************************************
'*                                                     *
'*         Copy OIA (13)                               *
'*                                                     *
'*******************************************************

' Copy the operator information area (OIA) data from the presentation space.

Declare Function AW_CopyOIA Lib "AFWAPI.DLL" (ByVal buffer As String, ByVal length As Integer) As Integer

' Parameters:

'       Buffer : String where OIA information is to be copied.  Minimum of 103 bytes.
'       Length : String length (minimum 103).

' AW_OK                         Function succeeded
' AW_PS_NOT_CONNECTED           Invalid PS or PS not connected
' AW_PARAMETER_ERROR            Bad parameter or invalid function
' AW_PS_BUSY                    OIA returned, Presentation Space Busy
' AW_PS_INHIBITED               OIA returned, System inhibited or keyboard lock
' AW_SYSTEM_ERROR               System error

'