[DllImport("NtDirect.dll")]
public extern static int Connected(int showMessage);
public static int _ATIConnected()
{
int ShwMsg = 0;
return Connected(ShwMsg);
}
====================================================================
using System.Runtime.InteropServices;
class Test
{
[DllImport( "NTDirect.dll" )]
public extern static int Connected( int showMessage );
public static void Main( string[] args )
{
int connectStatus = Connected( 1 );
}
}
===============================================================
NTDirect is a plain, old C DLL, you can not access it like a C# assembly. You would need to make yourself familiar with the .NET interop concept to understand how you access plain, old C DLLs from C# (hint: search for dllimport in the MS docs).
==================================================================================
[DllImport("unmanaged.dll")] static extern int MyFunc(int i);