>Are you accessing the DLL through COM? If so, you may be able to do a createobject within a try/catch.
Thanks for the reply.
I am acctually not accessing rapi.dll directly but through a 3rd party managed dll (OpenNETCF.Desktop.Communication.dll). The problem is that the exception slips through my catch for some reason. My try/catch is around the code that instansiates an object in OpenNETCF.Desktop.Communication.dll which in turn probably instansiates an object in rapi.dll.
I was also looking if there was a "better" way than waiting for an exception to be thrown.
Semper ubi sub ubi.