If a Windows application is spawned, the instance handle can be obtained using exec_instancehandleget.
When a Windows application is launched, its instance handle can be obtained using the exec_instancehandleget function, which provides access to the app's unique identifier.