我们可以从Delphi调用Native Windows API吗?
问题描述:
是否可以从Delphi应用程序中调用内核本机API?类似于 nt
和 zw
系统调用。
Is it possible to call the kernel Native APIs from within a Delphi application? Like nt
and zw
syscalls.
答
您确实可以从Delphi调用本地API。
You can indeed call the native API from Delphi.
Delphi不附带本机API的标头翻译。因此,您需要提供自己的翻译,或使用现有的翻译。例如。 NT API的JEDI转换。
Delphi does not ship with header translations for the native API. So you need to provide your own, or use a pre-existing translation. For example. the JEDI translation of the NT API.