求助!!!
HSNMP_SESSION SnmpOpen(
HWND hWnd, // handle to the notification window
UINT wMsg // window notification message number
);
Parameters
hWnd
[in] Handle to a window of the WinSNMP application to notify when an asynchronous request completes, or when trap notification occurs.
wMsg
[in] Specifies an unsigned integer that identifies the notification message to send to the WinSNMP application window.
Who 知道上面函数中参数wMsg对应的消息什么时候执行
问题点数:0、回复次数:2Top
1 楼wangweixing2000(星(inspiration(灵感)))回复于 2003-12-04 14:07:14 得分 0
这是在你创建好一个新的session后这个参数wMsg传递个一个消息循环如果这个session有什么改变或者事件发生对应的消息会及时发生的!Top
2 楼lvshui(攀登者)回复于 2003-12-04 14:18:44 得分 0
static SNMPAPI_STATUS CALLBACK Callback(
HSNMP_SESSION hSession, // handle to the WinSNMP session
HWND hWnd, // handle to the notification window
UINT wMsg, // window notification message number
WPARAM wParam, // type of notification
LPARAM lParam, // request identifier of PDU
LPVOID lpClientData); // optional application-defined dat
SNMPAPI_STATUS CALLBACK CSnmp::Callback(
HSNMP_SESSION hSession, // handle to the WinSNMP session
HWND hWnd, // handle to the notification window
UINT wMsg, // window notification message number
WPARAM wParam, // type of notification
LPARAM lParam, // request identifier of PDU
LPVOID lpClientData) // optional application-defined data
{
((CSnmp *)lpClientData)->m_Event.SetEvent();
return 1;
}
上面例子中就是wMsg对应的消息
谁能给俺解释一下原因!!Top




