Hi,
I've written my own keyboard IM and it goes fine, but I
have a problem when I try to unistall it.
The DLL file is loaded by the system and remain in memory
until the device is "warn-booted".
So I need to reboot my device when I want to unistall my
keyboard.
Does anyone know how to unload (free) the DLL loaded by
another process?
I've tried FreeLibrary but obviously doesn't work as the
DLL is not loaded by my process, it is loaded
by "device.exe" process.
Regards,

Re: FreeLibrary by Udara

Udara
Tue Sep 09 00:49:58 CDT 2003

I am afraid you cannot avoid a soft-reset here!
The only way to cause the "Device.exe", the host for all device driver DLLs,
to release the lock on your IM dll is a soft-reset.

A similar situation arises when installing/uninstalling the HTTP Server on
Pocket PC. See topic "Deploying the HTTP Server on Pocket PC 2" in eVC 3.0
books online.

UG

"Andy" <andysrpfe@yahoo.com> wrote in message
news:439c01c375f3$69c49720$a501280a@phx.gbl...
> Hi,
> I've written my own keyboard IM and it goes fine, but I
> have a problem when I try to unistall it.
> The DLL file is loaded by the system and remain in memory
> until the device is "warn-booted".
> So I need to reboot my device when I want to unistall my
> keyboard.
> Does anyone know how to unload (free) the DLL loaded by
> another process?
> I've tried FreeLibrary but obviously doesn't work as the
> DLL is not loaded by my process, it is loaded
> by "device.exe" process.
> Regards,
>
>