public BindDLL(string szFilename) { _pModule = BindDLL.LoadLibrary(szFilename); if (_pModule != IntPtr.Zero) { return; } int nResult = Marshal.GetHRForLastWin32Error(); throw Marshal.GetExceptionForHR(nResult); }