Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UI proxy helper dll

25 views
Skip to first unread message

Muku

unread,
Jun 9, 2008, 11:48:04 AM6/9/08
to
Can any one suggest me any example for using UI proxy helper dll..

Thanks in Advance

regards
Muku

Luca Calligaris

unread,
Jun 10, 2008, 1:13:39 AM6/10/08
to
There's no example, anyway it's quite simple:

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...

0 new messages