赞
踩
先上代码;
- /*------------------------------------------------------------
- win32, Winpcap, by bobo, 2018-09-09
- ------------------------------------------------------------*/
-
- //#include <windows.h>
- #include <pcap.h>
-
- LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
-
- int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
- PSTR szCmdLine, int iCmdShow)
- {
- static TCHAR szAppName[] = TEXT ("HelloWin") ;
- HWND hwnd ;
- MSG msg ;
- WNDCLASS wndclass ;
-
- wndclass.style = CS_HREDRAW | CS_VREDRAW ;
- wndclass.lpfnWndProc = WndProc ;
- wndclass.cbClsExtra = 0 ;
- wndclass.cbWndExtra = 0 ;
- wndclass.hInstance = hInstance ;
- wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
- wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
- wndclass.hbrBackground = (H

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。