GPPW (type, id, pass) |
Purpose
Use GPPW to assign a password to a resource. The graPHIGS API uses this password to validate the Attach Resource (GPATR) request from other application processes.
The id parameter specifies an identifier that your application assigned to the resource. The graPHIGS API uses the type parameter to identify the type of resource that the id parameter specifies. For example, if the type parameter specifies 1=WORKSTATION , then the graPHIGS API uses the id parameter to specify a workstation identifier (wsid) whose password is set.
Your application must provide this password (as well as the nucleus's resource identifier for the resource) to other applications that you authorize to access the resource. Use the Send Private Message (GPSPMS) subroutine to send this information. The Attach Resource (GPATR) subroutine then uses this information to authorize access to the resource.
For more information about the use of resource passwords and application messages, see The graPHIGS Programming Interface: Understanding Concepts
Parameters
Error Codes
Related Subroutines
RCP code
201341699 (X'0C003B03')