M
monkeydragon
how to would you transfer a DWORD variable from inside of a function to
the caller
ex.
InvokeProcessData(LPDWORD prtDW)
{
...
// we have created, initialized and processed
// dword variable from
DWORD data[32];
// we need to transfer DWORD data to caller
}
so that, the calling function would look like:
winmain(...)
{
DWORD new_data_buffer;
InvokeProcessData(&new_data_buffer);
//later 'new_data_buffer' will be used for example:
WriteFile(hFile, &new_data_buffer, ...,)
}
the caller
ex.
InvokeProcessData(LPDWORD prtDW)
{
...
// we have created, initialized and processed
// dword variable from
DWORD data[32];
// we need to transfer DWORD data to caller
}
so that, the calling function would look like:
winmain(...)
{
DWORD new_data_buffer;
InvokeProcessData(&new_data_buffer);
//later 'new_data_buffer' will be used for example:
WriteFile(hFile, &new_data_buffer, ...,)
}