DosSysCtl: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Legacy | |||
|RepFunc= | |||
|Remarks=This page list the older version of the function for reference. | |||
}} | |||
==Syntax== | ==Syntax== | ||
DosSysCtl(ULONG func, ULONG p); | DosSysCtl(ULONG func, ULONG p); |
Revision as of 04:05, 16 September 2017
![]() | |
---|---|
It is recommended to use a newer replacement for this function. | |
Replacement: | |
Remarks: | This page list the older version of the function for reference. |
Syntax
DosSysCtl(ULONG func, ULONG p);
Remarks
It is not declared in the headers but it is in the standard import libraries (DOSCALLS.876). The DosSysCtl function may be used for detecting whether we're being debugged or not.
Check also Query the DosError() state.
Sample Code
APIRET APIENTRY DosSysCtl(ULONG func, ULONG p); ULONG SavedDosError = 1; DosSysCtl((ULONG)27, (ULONG)&SavedDosError); DosError(0L); //FERR_DISABLEHARDERROR ... DosError(SavedDosError);