int PEXInitialize( Display *display, PEXExtensionInfo **info_return, int length, char *error_string )
Zero if successful; otherwise, one of the following return values:
Invoke PEXInitialize to initialize PEXlib for the specified display.
You can invoke this function multiple times; subsequent invocations result in the same return value as the first invocation.
If PEXInitialize is successful (return value is zero), or if the implementation issues a return value of PEXBadProtocolVersion, then this function returns a pointer to the extension information in info_return. Otherwise, this function returns a NULL pointer in info_return. Your application must not modify or free the extension information. See the PEXGetExtensionInfo for an explanation of the info_return argument.
The error_string argument specifies a pointer to memory allocated by the application. PEXlib defines the constant PEXErrorStringLength as a guideline for the size your application should allocate for the error string. If no failure occurs, then PEXlib does not change the memory addressed by the error_string argument. If a failure does occur, then PEXlib copies an error string giving further information about the failure into this memory (up to the maximum specified by the length argument).
The actual string returned is implementation-dependent, and PEXlib provides it for convenience in printing an error message for your application's end-user.
None.
For an overview, see PEXlib Access and Information Functions.