Undocumented API calls were rumored to be a big deal even back in the Windows 3.x days. I remember reading through this at the time looking for the 'smoking gun'.
https://www.amazon.com/Undocumented-Windows-Programmers-Micr...
There were some cute and offensive names, and a few interesting details about the internal implementation of Windows, but nothing that would've been hugely beneficial.
Things might well have changed since then. (Both at Microsoft and at Apple, where their software is definitely allowed to do things that third party software is not.)
"Undocumented Windows: A Programmers Guide to Reserved Microsoft Windows Api Functions (The Andrew Schulman Programming Series/Book and Disk"
https://www.amazon.com/-/de/dp/0201608340
Pity as SOM was much better alternative than COM, and OS/2 in general.
However that wasn't the only issue that nailed OS/2's destiny, higher hardware resources and lack of proper management direction from IBM side also played a big role.