Thread overview
kernel32 missing symbol definitions?
Jan 08, 2016
Yamiez
Jan 08, 2016
Rikki Cattermole
Jan 08, 2016
Rikki Cattermole
Jan 08, 2016
Yamiez
Jan 08, 2016
Yamiez
Jan 08, 2016
Adam D. Ruppe
January 08, 2016
Why is kernel32 missing symbols?

e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
January 08, 2016
On 08/01/16 1:27 PM, Yamiez wrote:
> Why is kernel32 missing symbols?
>
> e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/

If you can build for 64 do so.
That will fix it until somebody or you solve it from the import libs.
January 08, 2016
On 08/01/16 1:30 PM, Rikki Cattermole wrote:
> On 08/01/16 1:27 PM, Yamiez wrote:
>> Why is kernel32 missing symbols?
>>
>> e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
>
> If you can build for 64 do so.
> That will fix it until somebody or you solve it from the import libs.

grah, s/64/64 bit/
January 08, 2016
On Friday, 8 January 2016 at 00:30:44 UTC, Rikki Cattermole wrote:
> On 08/01/16 1:27 PM, Yamiez wrote:
>> Why is kernel32 missing symbols?
>>
>> e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
>
> If you can build for 64 do so.
> That will fix it until somebody or you solve it from the import libs.

Yea nope wont be able to build for 64 bit :/
January 08, 2016
On Friday, 8 January 2016 at 00:31:25 UTC, Rikki Cattermole wrote:
> On 08/01/16 1:30 PM, Rikki Cattermole wrote:
>> On 08/01/16 1:27 PM, Yamiez wrote:
>>> Why is kernel32 missing symbols?
>>>
>>> e.g CreateProcess, CreateToolhelp32Snapshot and alot more :/
>>
>> If you can build for 64 do so.
>> That will fix it until somebody or you solve it from the import libs.
>
> grah, s/64/64 bit/

Possible to just write a C program that wraps the actual kernel functions that I need and then just import those from the C lib?
January 08, 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.