Are you referring to .exe and .dll files?
What you are referring to is called reverse engineering and in case the code is not encrypted, then you will be able to view source code in some cases.
There are several third-party tools to do that.
View app source code
Is there any way or tool to show sourc code for any program while it's executing on windows ?
Thanks for you
Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
3 answers
Sort by: Most helpful
-
Reza-Ameri 45,806 Reputation points Volunteer Moderator
2021-02-13T16:25:10.107+00:00 -
Castorix31 91,866 Reputation points2021-02-11T05:36:33.827+00:00 For .NET applications, you can use tools like ILSpy to get an approaching source code
For Win32 executables (PE format), you cannot get the source code, you can just disassemble them (with tools like W32Dasm or others) -
Anonymous
2021-02-11T03:17:26.2+00:00 It depends on the underlying language that the developers used.
For Java and .NET languages it is possible most of the time to "de-compile" the source code. it's not going to be the true original code (variable names will be different, optimizations by the compiler will have rearranged code, etc) but it will be close.
Other languages such as C/C++ are not so easy.
Please refer to this detailed discussion here:
https://stackoverflow.com/questions/2659513/how-to-get-source-code-of-a-windows-executableBest regards.
**
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.