Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinit.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinit.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinit.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinit.html on line 8

PtInit()

Initialize the widget library

Synopsis:

int PtInit( char const *name );

Library:

ph

Description:

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() initializes all the widgets supplied by QNX Software Systems.


Note: The application that calls PtInit() must have the appropriate permissions to read from and write to the attached Photon server, or the call will fail.

Returns:

0
Successful completion.
-1
An error occurred.

Examples:

See PtClearWidget().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhAttach()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinit.html on line 119

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptinit.html on line 119