File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 1- //+---------------------------------------------------------------------------
2- //
3- // HELLO_DLL.C - Windows DLL example - main application part
4- //
1+ //-----------------------------------------------------------------------------
2+ // HELLO_DLL.C - Windows DLL example - Main Application Entry Point
3+ //-----------------------------------------------------------------------------
54
65#include <windows.h>
7-
86#include "../include/obfus.h"
97
8+ // Function prototype for DLL function
109void hello_func (void );
10+
11+ // Import external constant defined in the DLL
1112__declspec(dllimport ) extern const char * hello_data ;
1213
14+ // Entry point for the Windows application
1315int WINAPI WinMain (
1416 HINSTANCE hInstance ,
1517 HINSTANCE hPrevInstance ,
1618 LPSTR lpCmdLine ,
17- int nCmdShow ) {
19+ int nCmdShow )
20+ {
21+ // Set the shared DLL data to a greeting message
1822 hello_data = "Hello World!" ;
23+
24+ // Call the DLL's function to display or process the message
1925 hello_func ();
26+
27+ // Exit the application
2028 return 0 ;
2129}
You can’t perform that action at this time.
0 commit comments