QNX Developer Support
|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Initialize the widget library
int PtInit( char const *name );
This function initializes the widget library. If no Photon channel is currently attached, this function calls PhAttach() with the given Photon server name (/net/darrin/dev/photon, for example). If there is a current channel, PhAttach() isn't called.
Once a channel is attached, PtInit() installs all the widgets supplied by QNX Software Systems.
- Successful completion.
- An error occurred.