Core Function Debug
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Debug( <flag> ) </pre> === Description === Enter or leave debug mode in debug state the program can interact with operating system processes that run in a special mode by...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 24: | Line 24: | ||
=== Remarks === | === Remarks === | ||
− | Your script be running with *Run as administrator* in order to gain special debug privileges. | + | Your script must be running with *Run as administrator* in order to gain special debug privileges. |
=== Example === | === Example === |
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