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
> 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
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