Why does SimConnect require a Window handle?

User avatar
Rob Ainscough
Posts: 2597
Joined: Sat Jan 05, 2013 6:46 pm
Location: Oregon USA

Why does SimConnect require a Window handle?

Postby Rob Ainscough » Mon Oct 26, 2020 5:29 pm

I've always wondered why SimConnect requires a Window handle rather than an instance handle or PID?

For example:
1. WPF Application.xaml -- any code reference needed for SimConnect can't happen here because there is no window handle.
2. Windows Service -- again any code reference needed for SimConnect can't happen because there is no window handle.

For WPF, I have to create a window instance and work from that handle. But for Windows Service there is no associated UI. BUT why use a Window Handle (HWND) and not something like PID or HINSTANCE?

Cheers, Rob.
Rob Ainscough

Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 12 guests