我有这个 NASM 代码
extern GetStdHandle
extern WriteFile
extern AllocConsole
extern FreeConsole
extern SetConsoleTitleA
extern SetConsoleCursorPosition
extern Sleep
extern ExitProcess
extern ExitWindowsEx
import GetStdHandle kernel32.dll
import WriteFile kernel32.dll
import AllocConsole kernel32.dll
import FreeConsole kernel32.dll
import SetConsoleTitleA kernel32.dll
import SetConsoleCursorPosition kernel32.dll
import Sleep kernel32.dll
import ExitProcess kernel32.dll
import ExitWindowsEx user32.dll
.
section .text use32
..start:
call [ExitWindowsEx]
当我执行它时,它不会执行关闭计算机的功能。我读到它需要参数,但是我们如何在 C# 中传递这样的参数