On Fri Sep 6 15:26:07 2024 +0000, Nikolay Sivov wrote:
It's possible you can get rid of ret_size.
@nsivov yes, it can be done, I didn't notice, thanks. I did it automatically because NtQuerySystemEnvironmentValueEx in Windows requires specifying ret_size, otherwise it will return nothing and it works as IN - buffer size and OUT - return data size.