>Check the page you bookmarked recently:) You need DllImport attribute for any win32API you declare.
>Cetin
Umm, from my experience that is not true. And just for good measure I checked PInvoke.net and no where does it say you have to use DLLImport. DLLImport is an "option" instead of Declare. It supposedly allows for more flexibility when declaring API calls, at least that's how I understand it.
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook