CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  网络编程

求助!!!

楼主lvshui(攀登者)2003-12-04 13:55:33 在 VC/MFC / 网络编程 提问

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

相关问题

关键词

  • 消息
  • application
  • wmsg
  • notification
  • lpclientdata
  • winsnmp
  • hsnmp
  • callback
  • hwnd
  • handle

得分解答快速导航

  • 帖主:lvshui

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo