The following steps are necessary to build a VBA procedure that uses the CreateProcess function to run the Windows Notepad application.
Die folgenden Schritte sind erforderlich, um eine VBA-Prozedur zu erstellen, die die CreateProcess -Funktion zum Ausführen der Anwendung Windows Editor verwendet.
To gather information, the malware creates a new process using the Windows API CreateProcess function with cmd.exe/c SYSTEMINFO&TASKLIST as lpCommandLine argument.
Um Informationen zu sammeln, erstellt die Malware einen neuen Prozess mit der Windows API CreateProcess-Funktion mit cmd.exe/c SYSTEMINFO&TASKLIST als lpCommandLine-Argument.
To accomplish this, use the CreateProcess function instead of the Shell function to begin your shelled program.
The syntax of the CreateProcess function is complex, so in the example code, it is encapsulated into a function called ExecCmd. ExecCmd takes one parameter, the command line of the application to execute.
Die Syntax der CreateProcess -Funktion ist komplex. Aus diesem Grund ist Sie im Beispielcode in eine als ExecCmd bezeichnete Funktion gekapselt. ExecCmd akzeptiert als einzigen Parameter die Befehlszeile der auszuführenden Anwendung.
After you use the CreateProcess function to get a process handle, you can pass that handle to the WaitForSingleObject function.
After you use the CreateProcess function to get a process handle, you can pass that handle to the WaitForSingleObject function. This causes your VBA procedure to suspend execution until the shelled process ends.
Nachdem Sie die CreateProcess -Funktion verwendet haben, um ein Prozesshandle zu erhalten, können Sie das Handle an die WaitForSingleObject -Funktion übergeben. Dies führt dazu, dass die Ausführung durch die VBA-Prozedur angehalten wird, bis der Shellprozess beendet wurde.
Other results
This code shows how to use the Windows API CreateProcess and WaitForSingleObject functions to wait until a shelled process ends before resuming execution.
Dieser Code zeigt, wie die Windows API-Funktionen CreateProcess und WaitForSingleObject verwendet werden, um auf die Beendigung eines Shellprozesses zu warten, bevor die Ausführung fortgesetzt wird.
When a potentially risky function or method (a trigger, e.g. CreateProcess or ShellExecute) is called, Office stops the execution of the macro and requests a scan of the recorded macro behavior via the AMSI interface.
Wenn eine potenziell risikoreiche Funktion oder Methode (ein Auslöser, z.B. CreateProcess oder ShellExecute) aufgerufen wird, stoppt Office die Ausführung des Makros und fordert über die AMSI-Schnittstelle einen Scan des bis dahin aufgezeichneten Makroverhaltens an.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.
No results found for this meaning.
Synonyms and analogies of "CreateProcess function" in English