到 是 com 的还是 API 的那种?
如果是 com 的注册一下就可以了。
API 的需要声明
如 你的 user32.dll 里面有个函数叫 SetWindowLong
using System.Runtime.InteropServices;
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern long SetWindowLong(IntPtr hWnd, int nIndex, long dwNewLong);
就可以用了!