rust/library/std/src/sys
Guillaume Boisseau 5f21609463
Rollup merge of #119032 - smmalis37:patch-1, r=ChrisDenton
Use a hardcoded constant instead of calling OpenProcessToken.

Now that Win 7 support is dropped, we can resurrect #90144.

GetCurrentProcessToken is defined in processthreadsapi.h as:

FORCEINLINE
HANDLE
GetCurrentProcessToken (
    VOID
    )
{
    return (HANDLE)(LONG_PTR) -4;
}

Since it's very unlikely that this constant will ever change, let's just use it instead of making calls to get the same information.
2024-02-17 11:23:03 +01:00
..
os_str std: move OS String implementation into sys 2024-01-15 16:26:25 +01:00
pal Rollup merge of #119032 - smmalis37:patch-1, r=ChrisDenton 2024-02-17 11:23:03 +01:00
path std: move path into sys 2024-02-08 12:51:35 +01:00
personality std: move personality implementation out of PAL 2024-01-13 18:30:44 +01:00
cmath.rs Make cmath.rs a single file 2024-02-07 12:02:24 -03:00
mod.rs std: move path into sys 2024-02-08 12:51:35 +01:00