Determine Windows version via application [duplicate] - c++

This question already has answers here:
How do you check the windows version in Win32 at runtime?
(2 answers)
Closed 9 years ago.
I wanted to ask, is there any possibility to determine the Windows version via the application, I have made some research, but haven't found,
Thank you in advance ^^

Err... How about GetVersionEx() ?

Related

Work with File in windows [duplicate]

This question already has answers here:
How can we check if a file Exists or not using Win32 program?
(9 answers)
C++: Which is the best method of checking for file existence on windows platform [duplicate]
(11 answers)
Closed 9 years ago.
I need a function in c++ to check if a given path/filename exists on the computer.
Can anyone help me?
This could be another possibilty besides the ones from the comments
PathFileExists

WIN 32 API to detect launched and terminated application/process [duplicate]

This question already has answers here:
How to detect win32 process creation/termination in c++
(9 answers)
Closed 9 years ago.
I am looking for a WIN 32 API to detect application launch and termination in my application.
I am looking to develop a dockBar/TaskBar for which I need to get handle of application that are launch and terminate.
For a DockBar/TaskBar have a look at the RegisterShellHookWindow function.
Specifically, the HSHELL_WINDOWCREATED and HSHELL_WINDOWDESTROYED notification.

Getting OSName as a string C++ [duplicate]

This question already has answers here:
Get OS in c++ win32 for all versions of win?
(5 answers)
Closed 9 years ago.
Im am super new to C++ and am trying to figure out how to return the OSName (win 7, 8, vista, xp, etc) as a string. I tried searching and MSDN was no help, only confused me further.
All help appreciated.
it seems using predefined headers is the easiest way
http://sourceforge.net/p/predef/wiki/OperatingSystems/
What makes you think MSDN will give you the answers? Microsoft's implementation on MSDN is not standard C++, and thus you should be looking for a portable solution.

Open MFC application to get source-code [duplicate]

This question already has answers here:
Is it possible to "decompile" a Windows .exe? Or at least view the Assembly?
(16 answers)
Closed 7 years ago.
Does someone know how to open an MFC application to get the source-code?
(I want to know how it works)
MFC is compiled from C++ source, so it can't be recovered. You can use a decompiler on it, but the source you get back won't be particularly instructive.
There's a good related question on debugging, disassembling and decompiling you can check for more links.

Cross platform crash-reporters [duplicate]

This question already has answers here:
Cross-platform crash handler
(3 answers)
Closed 9 years ago.
Are there any cross platform crash reporters for C++ besides google-break pad? I have seen google-breakpad but it has very very limited documentation, and I have nothing seen very much mentioned here, google or other source websites
Have a look at BugTrap which might help you.