Re: Windows security model

2025-02-16 Thread Bruno Haible via Gnulib discussion list
Mitch Capper wrote: > For requests to get the actual username I don't know if it is better to: > 1) Try the official API GetUserName but it requires an additional windows > library if it is not already included (which most of the time it is not) > https://learn.microsoft.com/en-us/windows/win32/api

Re: Windows security model

2025-02-16 Thread Mitch Capper
> The current state is an attempt to make code compile if it doesn't use > or . I don't know whether this state can be significantly > improved. But if you have reasonable suggestions, please show them! For requests to get the actual username I don't know if it is better to: 1) Try the official A

Re: Windows security model

2025-02-15 Thread Bruno Haible via Gnulib discussion list
is not a great choice too. The Windows security model and the Unix security model are different enough that applications typically will work with #ifdef here. Especially since the Windows security model is based on SIDs, which are strings and don't fit into a 64-bit integer, one cannot expect to ha