Windojitsu -- blog.NET kung-fu in the ancient and venerable style of Win32PInvoke Properly, Please!- March 18, 2004 Please everyone, use DllImport(SetLastError=true), whenever possible -- and, more important still, remember to check the function&39;s return value! A smidgin of encapsulation helps enforce this...http://www.windojitsu.com/blog/pleasesetlasterror.html |