Core Function Debug

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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...")
 
(Remarks)
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 ===

Revision as of 19:42, 2 October 2013

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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox