Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:fapi:viomodewait [2021/09/05 04:48] – created prokushev | en:docs:fapi:viomodewait [2021/11/04 12:36] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{page> | ||
| + | |||
| + | ====== VioModeWait ====== | ||
| + | |||
| This call allows a graphics mode application to be notified when it must restore its video mode, state, and modified display adapter registers. The return from this function call provides the notification. | This call allows a graphics mode application to be notified when it must restore its video mode, state, and modified display adapter registers. The return from this function call provides the notification. | ||
| - | ==Syntax== | + | ===== Syntax ===== |
| + | <code c> | ||
| | | ||
| + | </ | ||
| - | ==Parameters== | + | ===== Parameters ===== |
| - | ; | + | |
| - | ;NotifyType (PUSHORT) - output : Address of the operation to be performed by the application returning from VioModeWait. NotifyType | + | |
| - | ;Reserved (USHORT) - input : Reserved word of 0s. | + | |
| - | ==Return Code== | + | * RequestType (USHORT) - input : Application request event. RequestType = 0 indicates the application wants to be notified at the end of a pop-up to restore its mode. RequestType = 0 is the only event supported by VioModeWait. |
| - | ;rc (USHORT) - return: | + | * NotifyType (PUSHORT) - output : Address of the operation to be performed by the application returning from VioModeWait. NotifyType = 0, indicating restore mode, is the only type of notification returned. |
| - | * 0 NO_ERROR | + | * Reserved (USHORT) - input : Reserved word of 0s. |
| - | *421 ERROR_VIO_INVALID_PARMS | + | |
| - | *422 ERROR_VIO_FUNCTION_OWNED | + | ===== Return Code ===== |
| - | *423 ERROR_VIO_RETURN | + | |
| - | *424 ERROR_SCS_INVALID_FUNCTION | + | rc (USHORT) - return: |
| - | *428 ERROR_VIO_NO_SAVE_RESTORE_THD | + | |
| - | *430 ERROR_VIO_ILLEGAL_DURING_POPUP | + | |
| - | *465 ERROR_VIO_DETACHED | + | *421 ERROR_VIO_INVALID_PARMS |
| - | *494 ERROR_VIO_EXTENDED_SG | + | *422 ERROR_VIO_FUNCTION_OWNED |
| + | *423 ERROR_VIO_RETURN | ||
| + | *424 ERROR_SCS_INVALID_FUNCTION | ||
| + | *428 ERROR_VIO_NO_SAVE_RESTORE_THD | ||
| + | *430 ERROR_VIO_ILLEGAL_DURING_POPUP | ||
| + | *465 ERROR_VIO_DETACHED | ||
| + | *494 ERROR_VIO_EXTENDED_SG | ||
| + | |||
| + | ===== Remarks ===== | ||
| - | ==Remarks== | ||
| At the completion of an application or hard error pop-up (reference VioPopUp), OS/2 notifies the session that was originally interrupted for the pop-up to restore its mode. The return from this function call provides that notification. The thread that issued the call must perform the restore and then immediately re-issue VioModeWait. | At the completion of an application or hard error pop-up (reference VioPopUp), OS/2 notifies the session that was originally interrupted for the pop-up to restore its mode. The return from this function call provides that notification. The thread that issued the call must perform the restore and then immediately re-issue VioModeWait. | ||
| Line 32: | Line 42: | ||
| When an application issues VioModeWait, | When an application issues VioModeWait, | ||
| - | ==Bindings== | + | ===== Bindings |
| - | ===C=== | + | |
| - | <PRE> | + | ====C==== |
| + | <code c> | ||
| #define INCL_VIO | #define INCL_VIO | ||
| Line 44: | Line 55: | ||
| USHORT | USHORT | ||
| - | </PRE> | + | </code> |
| - | ===MASM=== | + | ====MASM==== |
| - | <PRE> | + | <code asm> |
| EXTRN VioModeWait: | EXTRN VioModeWait: | ||
| INCL_VIO | INCL_VIO | ||
| Line 57: | Line 68: | ||
| Returns WORD | Returns WORD | ||
| - | </PRE> | + | </code> |
| [[http:// | [[http:// | ||
| + | |||
| + | {{page> | ||
| + | |||




