From a .Net CF 3.5 application I am trying to PInvoke the 'i2csdk.dll' that is located in the \Windows directory on my Windows CE 7 device. When I attempt to execute the PInvoke I get a 'System.MissingMethodException' with additional info Can't find PInvoke DLL 'i2csdk.dll'. The PInvoke of any function from coredll.dll and ceddk.dll work fine which are both located in the \Windows directory next to i2csdk.dll.
I have verified that i2csdk.dll is actually present in \Windows during run time.
I also know the DLL i2csdk.dll is compiled correctly because when I copy the i2csdk.dll into the same directory as my app the call is successful. That also tells me that this DLL is not dependent on another DLL.
Am I missing something? Is there some sort of DLL registration step that needs to happen?