[DllImport("iPAQUtil.dll", SetLastError=true)]
private static extern bool iPAQGetAcAdapterPresent (ref DWORD lpdwACPresent);
using DWORD = UInt32;
Do you know one? Please contribute it!
None.
Please add some!
public bool ACAdapterPresent
{
get
{
// Try catch in case DLL call fails
try
{
DWORD d = (DWORD)0;
if (!iPAQGetAcAdapterPresent(ref d))
{
// failed..
}
else
{
return ((int)d == 1);
}
}
catch (Exception )
{
// can't find function/dll
}
return false;
}
}