WinRestartWorkplace: Difference between revisions
Appearance
Created page with "This function causes the Workplace process to terminate and re-initialize. This function is applicable to OS/2 Warp 4, or higher, and WorkSpace On-Demand client operating..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
This function is applicable to OS/2 Warp 4, or higher, and [[WorkSpace On-Demand]] client operating systems. | This function is applicable to OS/2 Warp 4, or higher, and [[WorkSpace On-Demand]] client operating systems. | ||
==Syntax== | |||
WinRestartWorkplace(VOID) | |||
==Parameters== | |||
None. | |||
==Returns== | |||
rc ([[BOOL32]]) - output: Always returns FALSE. | |||
==Remarks== | |||
This function will cause the Workplace process to terminate and re-initialize. This call is useful in debugging workplace objects or for install programs that reregister system classes. | |||
==Example Code== | |||
Declaration: | |||
<pre> | |||
#include <os2.h> | #include <os2.h> | ||
BOOL32 APIENTRY WinRestartWorkplace(VOID); | BOOL32 APIENTRY WinRestartWorkplace(VOID); | ||
</pre> | |||
This example terminates and re-initializes the Workplace process. | |||
<pre> | |||
< | |||
#include <os2.h> | #include <os2.h> | ||
BOOL32 EXPENTRY WinRestartWorkplace(VOID); | BOOL32 EXPENTRY WinRestartWorkplace(VOID); | ||
Line 16: | Line 25: | ||
/* Terminate and re-initialize the Workplace process */ | /* Terminate and re-initialize the Workplace process */ | ||
WinRestartWorkplace(); | WinRestartWorkplace(); | ||
</ | </pre> | ||
[[Category:Win]] | [[Category:Win]] |
Latest revision as of 22:21, 15 May 2025
This function causes the Workplace process to terminate and re-initialize.
This function is applicable to OS/2 Warp 4, or higher, and WorkSpace On-Demand client operating systems.
Syntax
WinRestartWorkplace(VOID)
Parameters
None.
Returns
rc (BOOL32) - output: Always returns FALSE.
Remarks
This function will cause the Workplace process to terminate and re-initialize. This call is useful in debugging workplace objects or for install programs that reregister system classes.
Example Code
Declaration:
#include <os2.h> BOOL32 APIENTRY WinRestartWorkplace(VOID);
This example terminates and re-initializes the Workplace process.
#include <os2.h> BOOL32 EXPENTRY WinRestartWorkplace(VOID); /* Terminate and re-initialize the Workplace process */ WinRestartWorkplace();