Re: __cpuid like in C

2021-11-01 Thread Arsium via Digitalmars-d-learn
On Monday, 1 November 2021 at 16:01:38 UTC, rikki cattermole wrote: I think you are wanting this? https://dlang.org/phobos/core_cpuid.html#.processor Oh thx my bad I did not see it!

Re: __cpuid like in C

2021-11-01 Thread Arsium via Digitalmars-d-learn
On Monday, 1 November 2021 at 16:02:20 UTC, Paul Backus wrote: On Monday, 1 November 2021 at 16:00:05 UTC, Arsium wrote: Hello, Currently, I'm working to implement myself WinAPI functions. However, I could not find anything matching with : __cpuid like : https://gist.github.com/boxmein/7d8e5

__cpuid like in C

2021-11-01 Thread Arsium via Digitalmars-d-learn
Hello, Currently, I'm working to implement myself WinAPI functions. However, I could not find anything matching with : __cpuid like : https://gist.github.com/boxmein/7d8e5fae7febafc5851e Any idea ?

Re: RtlAdjustPrivilege and NtRaiseHardError

2020-05-25 Thread Arsium via Digitalmars-d-learn
On Sunday, 24 May 2020 at 20:35:58 UTC, novice2 wrote: "doesn't work" isn't very helpful. Are you seeing compiler errors? Linker errors? Runtime errors? Please describe your problem. Solved my problem alone : wrong signatures with functions ;) and this reply isn't very helpful. what is right

Re: RtlAdjustPrivilege and NtRaiseHardError

2020-05-24 Thread Arsium via Digitalmars-d-learn
On Saturday, 23 May 2020 at 01:33:13 UTC, Mike Parker wrote: On Friday, 22 May 2020 at 19:19:19 UTC, Arsium wrote: Just I tried to launch those functions from win32 api and seems doesn't work "doesn't work" isn't very helpful. Are you seeing compiler errors? Linker errors? Runtime errors? P

RtlAdjustPrivilege and NtRaiseHardError

2020-05-22 Thread Arsium via Digitalmars-d-learn
Just I tried to launch those functions from win32 api and seems doesn't work Here is my code module D_Programming_Test; import core.sys.windows.windows; pragma(lib, "ntdll.lib"); alias extern(C) int function(string[] args) MainFunc; extern (C) int _d_run_main(int argc, char **argv, MainFunc