Can any one suggest me any example for using UI proxy helper dll..

Thanks in Advance

regards
Muku

Re: UI proxy helper dll by Luca

Luca
Mon Jun 09 22:13:39 PDT 2008

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" <mukeshkb4u@gmail.com> ha scritto nel messaggio
news:dd110f1b-d19f-478f-baef-37fc58557f30@s21g2000prm.googlegroups.com...
> Can any one suggest me any example for using UI proxy helper dll..
>
> Thanks in Advance
>
> regards
> Muku