fast_io icon indicating copy to clipboard operation
fast_io copied to clipboard

Move default implementation from win32 to nt for Windows NT

Open trcrsired opened this issue 2 years ago • 3 comments

We do not want any immediate layer for windows.

9x kernel will still use win32

trcrsired avatar Oct 28 '23 18:10 trcrsired

https://github.com/cppfastio/fast_io/blob/804d943e30df0da782538d508da6ea6e427fc2cf/include/fast_io_hosted/platforms/nt.h#L1179

Console handles are accessable via ProcessEnvironment Block NtCurrentPeb()->ProcessParameters->StandardXXX. On x64 PEB is located via gs:[0x60]. I think we can get rid of GetStdHandle by accessing PEB directly.

kawaii-ghost avatar Dec 27 '23 00:12 kawaii-ghost

https://github.com/cppfastio/fast_io/blob/804d943e30df0da782538d508da6ea6e427fc2cf/include/fast_io_hosted/platforms/nt.h#L1179

Console handles are accessable via ProcessEnvironment Block NtCurrentPeb()->ProcessParameters->StandardXXX. On x64 PEB is located via gs:[0x60]. I think we can get rid of GetStdHandle by accessing PEB directly.

https://github.com/trcrsired/fast_io/blob/d46f04f76323cf9a9d830a187bc63d8cce7fa934/include/fast_io_hosted/platforms/nt.h#L1091

this change had already been done months ago on my sub rep. I haven't yet merged into this due to more change needs to be done.

trcrsired avatar Dec 27 '23 04:12 trcrsired

https://github.com/trcrsired/fast_io/commit/bead5e3076214e6220670856250f4bbba18e33f2

trcrsired avatar Dec 27 '23 06:12 trcrsired