Thanks in Advance
regards
Muku
You have to write a DLL which exports a function which complies with this
definition:
typedef BOOL (*PFN_UIENTRYPOINT)(
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
PDWORD pBytesReturned
);
For example, suppose you write kmsgbox.dll which exports the following:
extern "C" BOOL KMessageBox(
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
PDWORD pBytesReturned
)
{
return (BOOL)MessageBox(NULL,(LPCTSTR)lpInBuffer,_T("TEST"),MB_OK);
}
Then from kernel mode you can call:
CeCallUserProc(_T("kmsgbox.dll"),_T("KMessageBox"),...);
To show the Message Box;
Notice that, although the docs do not specify it:
* you can not pass a NULL lpInBuffer parameter to CeCallUserProc
** nInBufferSize parameter can not be greater than nOutBufferSize
--
Luca Calligaris
www.eurotech.it
"Muku" <mukes...@gmail.com> ha scritto nel messaggio
news:dd110f1b-d19f-478f...@s21g2000prm.googlegroups.com...