Use of DllImport within dynamic plugins

Hi,
is is possible to use declarations of DLL-functions within a dynamic plugin ( DllImport(“some.dll”)… )? I’d need the mapVirtualKey function and wonder how to import and use it. I’m not really familiar with c# compiling, so I thougt, may be there is a way to use the dynamic plugin structure for that.

Thank you.

yes, that works of course. see http://msdn.microsoft.com/en-us/library/aa288468(v=vs.71).aspx#pinvoke_example1 or http://www.dotnetperls.com/dllimport.

great,
thank you!