?? globals.h
字號:
#ifndef _NET_MONITOR_KERNEL_GLOBALS_H_
#define _NET_MONITOR_KERNEL_GLOBALS_H_
#include "define.h"
/**
* 注意:本動態連接庫所有程序只能處理一張網卡,并沒有關于多張網卡的做錯誤處理
*/
// Function name : GetAdapterMAC
// Description : 得到網卡的物理地址,這里只能處理有一塊網卡的情況
// Return type : bool
// Argument : UCHAR addr[6]
extern "C" __declspec(dllexport) bool GetAdapterMAC(UCHAR addr[6]);
// Function name : GetAdapterNum
// Description : 得到本機網卡的個數
// Return type : UCHAR
extern "C" __declspec(dllexport) UCHAR GetAdapterNum();
// Function name : ResetAdapter
// Description : Reset 一張LAN網卡
// Return type : void
extern "C" __declspec(dllexport) void ResetAdapter();
// Function name : SetAdapterReceiveAll
// Description : 設置網卡可以接收所有IP的數據(混雜模式)
// Return type : void
extern "C" __declspec(dllexport) bool SetAdapterReceiveAll();
// Function name : ReceiveAdapter
// Description : 接收數據
// Return type : int
// Argument : byte * buf
// Argument : int len
extern "C" __declspec(dllexport) int ReceiveAdapter(byte * buf,int len);
// Function name : GetHostName
// Description : 通過IP地址得到機器名
// Return type : int 機器名字符串長度
// Argument : char * addr ip地址
// Argument : char * name 機器名
extern "C" __declspec(dllexport) int GetHostName(char * addr,char * name);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -