kernel32 missing symbol definitions?
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 7 18:04:12 PST 2016
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.
More information about the Digitalmars-d-learn
mailing list