Files
rust/library/std/src
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
..
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-08-13 13:07:53 -06:00
2023-12-10 10:56:22 +08:00
2023-12-22 11:01:42 +01:00
2024-02-07 16:46:28 +01:00
2023-12-10 10:56:22 +08:00
2024-01-11 11:30:12 -05:00
2023-12-10 10:56:22 +08:00
2023-04-27 15:56:57 +02:00
2023-05-03 22:09:33 -07:00
2023-11-26 09:25:07 +08:00
2024-02-08 07:43:38 -05:00
2024-02-08 07:43:38 -05:00
2023-12-12 18:12:23 +08:00
2024-01-27 16:38:57 +01:00
2024-01-31 13:58:52 +00:00
2024-02-08 07:44:34 -05:00
2024-02-13 14:03:59 -05:00
2023-12-15 16:17:28 +00:00