我正在尝试将看门狗用于Icop voretex86主板。但是,代码什么也没做。我是否以正确的方式使用coredll.dll的senmessage? 我的代码:
[System.Runtime.InteropServices.DllImport("coredll.dll")]
public static extern int SendMessage(IntPtr hWnd, WM Msg, int wParam, int lParam);
public enum VK : int
{
setTimeoutTo1b = 0x9c,
time = 5,
resetb = 0xc0
}
public enum WM
{
setTimeOut = 0x84a,
setTimeoutTo1a = 0x84b,
reseta = 0x841
}
private void button3_Click(object sender, EventArgs e)
{
SendMessage((IntPtr)this.Handle, WM.setTimeOut, (int)VK.time, 0);
SendMessage((IntPtr)this.Handle, WM.setTimeoutTo1a, (int)VK.setTimeoutTo1b, 0);
}