[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPQNCR - Inquire Nucleus Resource Identifier

GPQNCR (type, id, errind, ncid, rid)

Note:

This subroutine is a graPHIGS API State List (PSL) inquiry. For an overview, see "PSL Inquiries"

Purpose

Use GPQNCR to inquire the nucleus resource identifier of the specified resource. It is the resource identifier assigned by the nucleus when the resource was created.

If the inquired information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the inquired information is unavailable, then the error indicator (errind) contains an error number indicating the reason, and the values returned in the output parameters are unpredictable.

Parameters

type -- specified by user, fullword integer

Resource type (1=WORKSTATION, 2=STRUCTURE_STORE, 3=IMAGE_BOARD, 4=FONT_DIRECTORY, 5=ARCHIVE_FILE )

id -- specified by user, fullword integer

Identifier of the resource as known to the shell.

errind -- returned by the graPHIGS API, fullword integer

Error indicator. If the error indicator is zero, the request has been completed. Otherwise, one of the following errors exists:
25
SPECIFIED WORKSTATION DOES NOT EXIST
211
RESOURCE TYPE IS INVALID
220
SPECIFIED ARCHIVE FILE DOES NOT EXIST
222
SPECIFIED STRUCTURE STORE DOES NOT EXIST
232
SPECIFIED IMAGE BOARD DOES NOT EXIST
242
SPECIFIED FONT DIRECTORY DOES NOT EXIST

ncid -- returned by the graPHIGS API, fullword integer

Nucleus identifier.

rid -- returned by the graPHIGS API, fullword integer

Nucleus resource identifier.

Error Codes

None

Related Subroutines

GPATR
Attach Resource
GPSBMS
Send Broadcast Message
GPSPMS
Send Private Message

RCP code

201345796 (X'0C004B04')


[ Previous | Next | Contents | Glossary | Home | Search ]