;       SCCSID = @(#)sswgtime.asm	6.1 90/11/18
;      SCCSID = @(#)sswgtime.asm	6.4 90/05/18

; ****************************************************************************
; *									     *
; *			  IBM/Microsoft Confidential			     *
; *									     *
; *		    Copyright (c) IBM Corporation  1987, 1990		     *
; *		    Copyright (c) Microsoft Corp.  1987, 1990		     *
; *			      All Rights Reserved			     *
; *									     *
; ****************************************************************************

;*********************** START OF SPECIFICATIONS ***********************/
;								       */
;  SOURCE FILE NAME: SSWGTIME					       */
;								       */
;  SUBROUTINE NAME:  DOSGETTIMES				       */
;								       */
;  DESCRIPTIVE NAME:  Inquire currently set screen lock time	       */
;								       */
;								       */
;  FUNCTION: Allows processes to inquire the current setting of the    */
;	     screen lock time as set by the Shell via the	       */
;	     DosSetMnLockTime call.				       */
;								       */
;								       */
;  NOTES:  Executes on Level 3					       */
;								       */
;  ENTRY POINT:  DosGetTimes					       */
;    LINKAGE							       */
;								       */
;  INPUT:   - Address to store LockTime 			       */
;	    - DeviceHandle					       */
;								       */
;  EXIT-NORMAL: 						       */
;								       */
;  EXIT-ERROR:							       */
;								       */
;  EFFECTS:  None						       */
;								       */
;  INTERNAL REFERENCES: 					       */
;    ROUTINES:	SSCBUpdate					       */
;								       */
;  EXTERNAL REFERENCES: 					       */
;    ROUTINES:	DosGetShrSeg, DosGetInfoSeg, DosFreeSeg 	       */
;								       */
;	Change History: 					       */
;								       */
;	@TL6 - 03/01/90 - DCR 704 - Merge SMG/SSW instance data into   */
;			  OS2CHAR				       */
;								       */
;************************ END OF SPECIFICATIONS ************************/

.xlist
INCLUDE SSWEXTR3.INC
INCLUDE SSWINC.INC
EXTRN	locktime:WORD
.list

.386p

CODE	SEGMENT WORD PUBLIC 'CODE' USE16                                ;@TL6

	ASSUME	CS:CODE, DS:NOTHING,SS:NOTHING,ES:NOTHING		;@TL6

	       PUBLIC  DOSGETTIMES

DOSGETTIMES    PROC    FAR

	       push    bp
	       mov     bp,sp
	       push    ds						;CJ10
	       push    di
;@TL6	       push    bx


	       mov     ax,stdatasg		    ; We can access our ;@TL6
	       mov     ds,ax			    ; static data area	;@TL6
						    ; either 8 or 10
	       mov     ax,locktime		    ; Selector and offset
						    ; where to return value
	       lds     di,ss:[bp+8]		    ; Get lock time and
	       mov     ds:[di],ax		    ; pass it to caller
	       sub     ax,ax			    ; Clear RC		;@TL6

;@TL6	       pop     bx
	       pop     di
	       pop     ds						;CJ10
	       pop     bp

	       ret     8			    ;? either 6 or 8

DOSGETTIMES    ENDP

CODE	ENDS								;@TL6
	       END
