Difference between WinMain,main and DllMain in C++
What is the difference between the three functions and when to use them?? WinMain is used for an application (ending .exe) to indicate the process is starting. It will provide command line arguments for the process and serves as the user code entry point for a process. WinMain (or a different version of main) is also a required function. The OS needs a function to call in order to start a process running. DllMain is used for a DLL to signify a lot of different scenarios. Most notably, it will be called when The DLL is loaded into the process: DLL_PROCESS_ATTACH The DLL is unloaded from the