Core Function Debug
From Sputnik Wiki
(Difference between revisions)
(→Remarks) |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:37, 14 June 2015
Debug( <flag> )
Contents |
Description
Enter or leave debug mode in debug state the program can interact with operating system processes that run in a special mode by enabling the native property SeDebugPrivilege on the current thread.
Parameters
flag
0 = Leave Debug Mode 1 = Enter Debug Mode
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
Your script must be running with *Run as administrator* in order to gain special debug privileges.
Example
Debug(1); // ON Debug(0); // OFF