• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

How programmatically identify FSX Steam

Messages
120
Country
unitedstates
I'm uisng the following C# code to identify FSX but am wondering how I can detect if Steam Edition is runnning?

IntPtr nWinHandle = FindWindow(null, "Microsoft Flight Simulator X");

SE has the same window name.

Thanks...
 
See if you get a different version/build for the application on simconnect open.

SIMCONNECT_RECV_OPEN
The SIMCONNECT_RECV_OPEN structure is used to return information to the client, after a successful call to SimConnect_Open.

Syntax
struct SIMCONNECT_RECV_OPEN : public SIMCONNECT_RECV {
char szApplicationName[256];
DWORD dwApplicationVersionMajor;
DWORD dwApplicationVersionMinor;
DWORD dwApplicationBuildMajor;
DWORD dwApplicationBuildMinor;
DWORD dwSimConnectVersionMajor;
DWORD dwSimConnectVersionMinor;
DWORD dwSimConnectBuildMajor;
DWORD dwSimConnectBuildMinor;
DWORD dwReserved1;
DWORD dwReserved2;
};

edit:

FSX-SE is 10.0.62613
FSX is 10.0.61637
 
Last edited:
Hmmm...so I put all those var into a dialog to see them all...I see dwApplicationBuildMajor == 62613 for SE and 61637 for FSX...so I guess I go with those values...thanks Ron.
 
I had a user report he was getting an SE identification on FSX...so I'm guessing this method isn't fool proof... :-(
 
What values are you looking at. I did a test here and I get:

fsx 61259 build simconnect
fsx 61637 build fsx

steam 62615 build simconnect
steam 62615 build fsx-se

Looks like a recent update to steam, but Dovetail is not playing nice. Same value for both. You may need to modify your logicl.
 
The FSX-MS values are not going to change, so check for them specifically. If you don't find them, you are dealing with FSX-SE.
 
I also need to work with P3D...so I'm going back to using a radio button and have the user tell me what FS they are using. They only need to do this once. My code will then act accordingly and correctly based on what they have set.
 
The MajorVersion information should tell you that. It will be 1 or 2 for P3D and 10 for FSX.
 
That doesn't seem to be reliable for SE so I will stay with the user clicking on a radio button to tell my app what platform they are using.

Thanks very much...
 
Hello,

Not sure if this is still relevant.

I run a DLL inside FS process, and determine version by several ways, but not via SimConnect.

I get a fully qualified path via WinAPI, specifically GetModuleFileName call with null as reference handle. Returns a path to active FS executable. Practical.

Now, if it the name of the executable goes by fsx, it's fsx, for p3d I check major version from the exe path.

Back to FSX, first order of business, if the build version is more than 62000 it's Steam.

There is a registry item to see if the installation is Side-by-side.

Sent from my D6503 using Tapatalk
 
Back
Top