Jump to content

DevHlp QSysState: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:DevHlp_QSysState}}
DevHlp_QSysState is used by physical device drivers to obtain system status information.
DevHlp_QSysState is used by physical device drivers to obtain system status information.


==Syntax==
==Syntax==
===C===
There is no direct C calling Sequence.
There is no direct C calling Sequence.


===Assembler===
CallingSequence in Assembler
CallingSequence in Assembler
<PRE>
<PRE>
Line 17: Line 16:
</PRE>
</PRE>


==Parameters==
==Return==
===C===
N/A
 
===Assembler===
; EntityList :
; EntityLevel :
; pidtid :
; pDataBuf :
; cbDataBuf :
 
==Return Code==
===C===
N/A
 
===Assembler===
* C' Clear if process killed. AX = zero.
* C' Clear if process killed. AX = zero.
* 'C" Set if error.
* 'C" Set if error.
Possible errors
Possible errors
; 87 ERROR_INVALID_PARAMETER : Invalid parameter specified.  
; 87 ERROR_INVALID_PARAMETER: Invalid parameter specified.
; 111 ERROR_BUFFER_OVERFLOW : Data buffer is too small to hold all returned information.  
; 111 ERROR_BUFFER_OVERFLOW: Data buffer is too small to hold all returned information.
; 115 ERROR_PROTECTION_VIOLATION : Unable to store in to data buffer.  
; 115 ERROR_PROTECTION_VIOLATION: Unable to store in to data buffer.
; 124 ERROR_INVALID_LEVEL : Data buffer is too small to hold all returned information.
; 124 ERROR_INVALID_LEVEL: Data buffer is too small to hold all returned information.


==Remarks==
==Remarks==
 
DevHlp_QSysState is functionally equivalent to DosQuerySysState. See [[DosQuerySysState]] for information on the entities that may be requested and the format of the entities returned. This Device Help may be call at Task Time only.
==Example Code==
===C===
N/A
 
===Assembler===
 
 
==Related Functions==


[[Category:DevHlps]]
[[Category:DevHlps]]

Latest revision as of 02:45, 29 January 2018

DevHlp_QSysState is used by physical device drivers to obtain system status information.

Syntax

There is no direct C calling Sequence.

CallingSequence in Assembler

    MOV   EAX, EntityList
    MOV   EBX, EntityLevel
    MOV   EDI, pidtid
    MOV   ESI, pDataBuf
    MOV   ECX, cbDataBuf
    MOV   DL,  DevHlp_QSysState
    CALL  [Device_Help]

Return

  • C' Clear if process killed. AX = zero.
  • 'C" Set if error.

Possible errors

87 ERROR_INVALID_PARAMETER
Invalid parameter specified.
111 ERROR_BUFFER_OVERFLOW
Data buffer is too small to hold all returned information.
115 ERROR_PROTECTION_VIOLATION
Unable to store in to data buffer.
124 ERROR_INVALID_LEVEL
Data buffer is too small to hold all returned information.

Remarks

DevHlp_QSysState is functionally equivalent to DosQuerySysState. See DosQuerySysState for information on the entities that may be requested and the format of the entities returned. This Device Help may be call at Task Time only.