Jump to content

DosScrLock: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[image:legacy.png]]
This allows a process to lock the screen exclusively for itself, until it is DOSSCRUNLOCKed again. Other sessions will be sent into background, if they also request the screen.


==Description==
==Syntax==
This allows a process to lock the screen exclusively for itself, until it is DOSSCRUNLOCKed again. Other sessions will be sent into background, if they also request the screen.
DOSSCRLOCK(short wait,UCHAR* rc)


==Syntax==
<PRE>
APIRET16 Pascal far DOSSCRLOCK(short wait,UCHAR* rc)
</PRE>
==Parameters==
==Parameters==
; wait
;wait
    =0 return directly
:=0 return directly
    =1 wait until screen is available  
:=1 wait until screen is available
 
;rc
; rc
:=0 lock succeeded
    =0 lock succeeded
:=1 lock failed
    =1 lock failed  


==Return Code==
==Return Code==
 
APIRET16 Pascal far
==Remarks==
 
 
==Example Code==
 
<PRE>
 
</PRE>


==Related Functions==
==Related Functions==
*  
*[[DosScrUnlock]]
 


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

Latest revision as of 15:40, 17 October 2018

This allows a process to lock the screen exclusively for itself, until it is DOSSCRUNLOCKed again. Other sessions will be sent into background, if they also request the screen.

Syntax

DOSSCRLOCK(short wait,UCHAR* rc)

Parameters

wait
=0 return directly
=1 wait until screen is available
rc
=0 lock succeeded
=1 lock failed

Return Code

APIRET16 Pascal far

Related Functions