F
farseer
i am trying to include the following P/Invoke function in a class:
[DllImport("coredll.dll")]
private static extern bool TerminateProcess(IntPtr hProcess,
uint ExitCode);
this is based on an MSDN article found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/ProcessManager.asp
the problem is when i try to compile, i get the error "The type or
namespace name 'DllImport' could not be found (are you missing a using
directive or an assembly reference?"
the project is a Pocket PC 2003 project.
any ideas how to successfully get this going?
[DllImport("coredll.dll")]
private static extern bool TerminateProcess(IntPtr hProcess,
uint ExitCode);
this is based on an MSDN article found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/ProcessManager.asp
the problem is when i try to compile, i get the error "The type or
namespace name 'DllImport' could not be found (are you missing a using
directive or an assembly reference?"
the project is a Pocket PC 2003 project.
any ideas how to successfully get this going?