what i'm trying to do:
i have source code of old game that built in c
,
and i want that this game process will change the title of external winform application,
something like:
int Handle;
//Find The WinForm Window Handle
UseLibFunction("user32.dll","FindWindow","My_WinForm_Window_Title",Handle)
//Change The Title
UseLibFunction("user32.dll","SendMessage","WM_SETTEXT","New Title",Handle)
since i'm not a good programmer in C
i can't create kind of global function such as "UseLibFunction
" (use UseLibFunction
function anytime and in any c file that i want - kind of global function , something like : include("thefunction.c")
)
another thing: i don't have any c function named: UseLibFunction
which means that i need to create this function but i have no idea from where to start.
so:
since it's the first and the last c project that i'm going to create:
someone can give me example to how to use the user32.dll functions by c?