Re: winapi, dll

2020-10-15 Thread Atmosfear via Digitalmars-d-learn
On Thursday, 15 October 2020 at 20:47:43 UTC, Imperatorn wrote: On Thursday, 15 October 2020 at 20:13:37 UTC, Atmosfear wrote: On Thursday, 15 October 2020 at 16:32:06 UTC, Imperatorn wrote: [...] I'm a newby. Can you show me an example? In which module is it? I see. What Editor/IDE are you

Re: winapi, dll

2020-10-15 Thread Atmosfear via Digitalmars-d-learn
On Thursday, 15 October 2020 at 16:32:06 UTC, Imperatorn wrote: On Thursday, 15 October 2020 at 12:45:42 UTC, Atmosfear wrote: I didn't find how to call the queryperformancecounter function. I tried this. Returns errors, doesn't know what BOOL and LARGE_INTEGER are. import core.sys.windows.wi

winapi, dll

2020-10-15 Thread Atmosfear via Digitalmars-d-learn
I didn't find how to call the queryperformancecounter function. I tried this. Returns errors, doesn't know what BOOL and LARGE_INTEGER are. import core.sys.windows.windows; import core.sys.windows.w32api; import core.sys.windows.winbase; pragma(lib, "kernel32"); extern (Windows) { BOOL Quer