On Friday, 8 January 2016 at 00:27:51 UTC, Yamiez wrote:
Why is kernel32 missing symbols?

e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/

The kernel32 lib has them, the headers don't.

You can define the missing functions yourselves and call them:

---
import core.sys.windows.windows;

extern(Windows)
HANDLE CreateToolhelp32Snapshot(
 DWORD dwFlags,
 DWORD th32ProcessID
);

void main() {
        CreateToolhelp32Snapshot(0, 0);
}
---


CreateProcess is there but might not be aliased for ascii vs unicode. Try CreateProcessA or CreateProcessW in your code.

Reply via email to