This function is provided only for compatibility with 16-bit Windows-based applications. Applications should store initialization information in the registry.
They literally provided the registry to solve this very problem from the days of 16-bit Windows. Holding it against them in 2025 when they have given you a perfectly good alternative for decades is rather ridiculous and is evidence for the exact opposite of what you intended.
[0] https://learn.microsoft.com/en-us/windows/win32/api/winbase/...