View app source code

Ibrahim 1 Reputation point
2021-02-11T00:02:59.45+00:00

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
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. 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-executable

    Best 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.

    0 comments No comments

  2. Castorix31 90,521 Reputation points
    2021-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)

    0 comments No comments

  3. Reza-Ameri 17,336 Reputation points Volunteer Moderator
    2021-02-13T16:25:10.107+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.