Jump to content

VioSavRedrawUndo: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
==Description==
Allows one thread within a process to cancel a [[VioSavRedrawWait]] issued by another thread within the same process.
Allows one thread within a process to cancel a VioSavRedrawWait issued by another thread within the same process.


==Syntax==
==Syntax==
<PRE>
VioSavRedrawUndo(OwnerIndic, KillIndic, VioHandle)
#define INCL_VIO
#include <os2.h>


ULONG    OwnerIndic;  /*  Ownership indicator */
ULONG    KillIndic;  /*  Terminate indicator */
HVIO      VioHandle;  /*  Reserved.  Must be 0. */
APIRET    rc;          /*  Return code. */
rc = VioSavRedrawUndo(OwnerIndic, KillIndic,
      VioHandle);
</PRE>
==Parameters==
==Parameters==
; OwnerIndic (ULONG) - input : Ownership indicator
; OwnerIndic (ULONG) - input : Ownership indicator
Indicates whether the thread issuing VioSavRedrawUndo wants ownership of VioSavRedrawUndo to be reserved for its process.
Indicates whether the thread issuing VioSavRedrawUndo wants ownership of VioSavRedrawUndo to be reserved for its process.
 
0   Reserve ownership.  
   Value            Definition
1   Give up ownership.  
  0      Reserve ownership.  
  1     Give up ownership.  
 
; KillIndic (ULONG) - input : Terminate indicator
; KillIndic (ULONG) - input : Terminate indicator
Indicates whether the thread (with the outstanding VioSavRedrawUndo) should return an error code or be terminated.
Indicates whether the thread (with the outstanding VioSavRedrawUndo) should return an error code or be terminated.
0  Return error code.
1  Terminate thread.
; VioHandle (HVIO) - input : Reserved. Must be 0.


  Value                    Definition
  0                    Return error code.
  1                    Terminate thread.
; VioHandle (HVIO) - input : Reserved. Must be 0.
==Return Code==
==Return Code==
  rc (APIRET) - returns
  rc (APIRET) - returns


VioSavRedrawUndo returns one of the following values:
VioSavRedrawUndo returns one of the following values:
* 0    NO_ERROR  
* 0    NO_ERROR  
* 421       ERROR_VIO_INVALID_PARMS  
* 421 ERROR_VIO_INVALID_PARMS  
* 422       ERROR_VIO_FUNCTION_OWNED  
* 422 ERROR_VIO_FUNCTION_OWNED  
* 428       ERROR_VIO_NO_SAVE_RESTORE_THD  
* 428 ERROR_VIO_NO_SAVE_RESTORE_THD  
* 430       ERROR_VIO_ILLEGAL_DURING_POPUP  
* 430 ERROR_VIO_ILLEGAL_DURING_POPUP  
 


==Remarks==
==Remarks==
The issuing thread can reserve ownership of VioSavRedrawWait for its process or give it up. The thread whose VioSavRedrawWait was canceled is optionally terminated. VioSavRedrawUndo can be issued only by a thread within the same process that owns VioSavRedrawWait. VioSavRedrawWait.
The issuing thread can reserve ownership of [[VioSavRedrawWait]] for its process or give it up. The thread whose VioSavRedrawWait was canceled is optionally terminated. VioSavRedrawUndo can be issued only by a thread within the same process that owns VioSavRedrawWait.
 
==Example Code==
<PRE>
 
</PRE>
==Related Functions==
* [[OS2 API:CPI:
 


[[Category:The OS/2 API Project]]
[[Category:Vio]]

Revision as of 19:34, 26 February 2017

Allows one thread within a process to cancel a VioSavRedrawWait issued by another thread within the same process.

Syntax

VioSavRedrawUndo(OwnerIndic, KillIndic, VioHandle)

Parameters

OwnerIndic (ULONG) - input
Ownership indicator

Indicates whether the thread issuing VioSavRedrawUndo wants ownership of VioSavRedrawUndo to be reserved for its process.

0   Reserve ownership. 
1   Give up ownership. 
KillIndic (ULONG) - input
Terminate indicator

Indicates whether the thread (with the outstanding VioSavRedrawUndo) should return an error code or be terminated.

0   Return error code. 
1   Terminate thread. 
VioHandle (HVIO) - input
Reserved. Must be 0.

Return Code

rc (APIRET) - returns

VioSavRedrawUndo returns one of the following values:

  • 0 NO_ERROR
  • 421 ERROR_VIO_INVALID_PARMS
  • 422 ERROR_VIO_FUNCTION_OWNED
  • 428 ERROR_VIO_NO_SAVE_RESTORE_THD
  • 430 ERROR_VIO_ILLEGAL_DURING_POPUP

Remarks

The issuing thread can reserve ownership of VioSavRedrawWait for its process or give it up. The thread whose VioSavRedrawWait was canceled is optionally terminated. VioSavRedrawUndo can be issued only by a thread within the same process that owns VioSavRedrawWait.