DosSysCtl: Difference between revisions
Appearance
Created page with "==Syntax== DosSysCtl(ULONG func, ULONG p); ==Remarks== It is not declared in the headers but it is in the standard import libraries (DOSCALLS.876). Check also Query the D..." |
No edit summary |
||
Line 3: | Line 3: | ||
==Remarks== | ==Remarks== | ||
It is not declared in the headers but it is in the standard import libraries (DOSCALLS.876). | 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]]. | Check also [[Query the DosError() state]]. |
Revision as of 17:44, 18 July 2017
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);