📄 hnpssdk.h
字号:
// AdpCfgGetSubnetMaskA - Returns the subnet mask that matches to the corresponding IP address index.
LPCSTR __stdcall AdpCfgGetSubnetMaskA(HANDLE hCfg, INT Index);
typedef LPCSTR (__stdcall *FN_AdpCfgGetSubnetMaskA)(HANDLE hCfg, INT Index);
//---------------------------------------------------------------------------
// AdpCfgGetSubnetMaskW - Returns the subnet mask that matches to the corresponding IP address index.
LPCWSTR __stdcall AdpCfgGetSubnetMaskW(HANDLE hCfg, INT Index);
typedef LPCWSTR (__stdcall *FN_AdpCfgGetSubnetMaskW)(HANDLE hCfg, INT Index);
#ifdef UNICODE
#define AdpCfgGetSubnetMask AdpCfgGetSubnetMaskW
#else
#define AdpCfgGetSubnetMask AdpCfgGetSubnetMaskA
#endif // !UNICODE
//---------------------------------------------------------------------------
// AdpCfgGetIpDhcpCount - Returns the number of the IP addresses of DHCP servers set on the system.
DWORD __stdcall AdpCfgGetIpDhcpCount(HANDLE hCfg);
typedef DWORD (__stdcall *FN_AdpCfgGetIpDhcpCount)(HANDLE hCfg);
//---------------------------------------------------------------------------
// AdpCfgGetIpDhcpA - Returns one of the IP addresses of DHCP servers set on the system.
LPCSTR __stdcall AdpCfgGetIpDhcpA(HANDLE hCfg, INT Index);
typedef LPCSTR (__stdcall *FN_AdpCfgGetIpDhcpA)(HANDLE hCfg, INT Index);
//---------------------------------------------------------------------------
// AdpCfgGetIpDhcpW - Returns one of the IP addresses of DHCP servers set on the system.
LPCWSTR __stdcall AdpCfgGetIpDhcpW(HANDLE hCfg, INT Index);
typedef LPCWSTR (__stdcall *FN_AdpCfgGetIpDhcpW)(HANDLE hCfg, INT Index);
#ifdef UNICODE
#define AdpCfgGetIpDhcp AdpCfgGetIpDhcpW
#else
#define AdpCfgGetIpDhcp AdpCfgGetIpDhcpA
#endif // !UNICODE
//---------------------------------------------------------------------------
// AdpCfgGetIpGatewayCount - Returns the number of the gateways IP addresses.
DWORD __stdcall AdpCfgGetIpGatewayCount(HANDLE hCfg);
typedef DWORD (__stdcall *FN_AdpCfgGetIpGatewayCount)(HANDLE hCfg);
//---------------------------------------------------------------------------
// AdpCfgGetIpGatewayA - Returns one of the IP addresses of the gateways set on the system.
LPCSTR __stdcall AdpCfgGetIpGatewayA(HANDLE hCfg, INT Index);
typedef LPCSTR (__stdcall *FN_AdpCfgGetIpGatewayA)(HANDLE hCfg, INT Index);
//---------------------------------------------------------------------------
// AdpCfgGetIpGatewayW - Returns one of the IP addresses of the gateways set on the system.
LPCWSTR __stdcall AdpCfgGetIpGatewayW(HANDLE hCfg, INT Index);
typedef LPCWSTR (__stdcall *FN_AdpCfgGetIpGatewayW)(HANDLE hCfg, INT Index);
#ifdef UNICODE
#define AdpCfgGetIpGateway AdpCfgGetIpGatewayW
#else
#define AdpCfgGetIpGateway AdpCfgGetIpGatewayA
#endif // !UNICODE
//---------------------------------------------------------------------------
// AdpCfgGetIpDnsCount - Returns the number of the IP addresses of DNS servers set on the system.
DWORD __stdcall AdpCfgGetIpDnsCount(HANDLE hCfg);
typedef DWORD (__stdcall *FN_AdpCfgGetIpDnsCount)(HANDLE hCfg);
//---------------------------------------------------------------------------
// AdpCfgGetIpDnsA - Returns one of the IP addresses of the DNS servers set on the system.
LPCSTR __stdcall AdpCfgGetIpDnsA(HANDLE hCfg, INT Index);
typedef LPCSTR (__stdcall *FN_AdpCfgGetIpDnsA)(HANDLE hCfg, INT Index);
//---------------------------------------------------------------------------
// AdpCfgGetIpDnsW - Returns one of the IP addresses of the DNS servers set on the system.
LPCWSTR __stdcall AdpCfgGetIpDnsW(HANDLE hCfg, INT Index);
typedef LPCWSTR (__stdcall *FN_AdpCfgGetIpDnsW)(HANDLE hCfg, INT Index);
#ifdef UNICODE
#define AdpCfgGetIpDns AdpCfgGetIpDnsW
#else
#define AdpCfgGetIpDns AdpCfgGetIpDnsA
#endif // !UNICODE
//---------------------------------------------------------------------------
// AdpCfgUpdate - Updates the network adapter configuration.
DWORD __stdcall AdpCfgUpdate(HANDLE hCfg, DWORD ChangeType);
typedef DWORD (__stdcall *FN_AdpCfgUpdate)(HANDLE hCfg, DWORD ChangeType);
//###########################################################################
// PSSDK HNQUEUE
//###########################################################################
//---------------------------------------------------------------------------
// v2.2 - QueCreate - Creates the HNQueue object.
HANDLE __stdcall QueCreate();
typedef HANDLE (__stdcall *FN_QueCreate)();
//---------------------------------------------------------------------------
// v2.2 - QueDestroy - Destroys the HNQueue object.
DWORD __stdcall QueDestroy(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueDestroy)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueGetMaxPacketSize - Returns the queue packet maximum size.
DWORD __stdcall QueGetMaxPacketSize(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueGetMaxPacketSize)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueSetMaxPacketSize - Sets the queue packet maximum size.
DWORD __stdcall QueSetMaxPacketSize(HANDLE hQue, DWORD MaxPacketSize);
typedef DWORD (__stdcall *FN_QueSetMaxPacketSize)(HANDLE hQue, DWORD MaxPacketSize);
//---------------------------------------------------------------------------
// v2.2 - QueGetItemsCount - Returns an overall quantity of queue elements.
DWORD __stdcall QueGetItemsCount(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueGetItemsCount)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueSetItemsCount - Sets an overall quantity of queue elements.
DWORD __stdcall QueSetItemsCount(HANDLE hQue, DWORD ItemsCount);
typedef DWORD (__stdcall *FN_QueSetItemsCount)(HANDLE hQue, DWORD ItemsCount);
//---------------------------------------------------------------------------
// v2.2 - QueGetAllocatedSize - Returns total size of the memory pool used by queue.
SIZE_T __stdcall QueGetAllocatedSize(HANDLE hQue);
typedef SIZE_T (__stdcall *FN_QueGetAllocatedSize)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueGetFreeCount - Returns total amount of the queue items with Free status.
DWORD __stdcall QueGetFreeCount(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueGetFreeCount)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueGetFullCount - Returns total amount of the queue items with Full status.
DWORD __stdcall QueGetFullCount(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueGetFullCount)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueAllocItems - Allocates memory for queue items and creates queue synchronization objects.
DWORD __stdcall QueAllocItems(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueAllocItems)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueFreeItems - Releases queue resources.
DWORD __stdcall QueFreeItems(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueFreeItems)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueGetFreeItem - Returns an element with Free status from the queue.
HANDLE __stdcall QueGetFreeItem(HANDLE hQue, DWORD Milliseconds);
typedef HANDLE (__stdcall *FN_QueGetFreeItem)(HANDLE hQue, DWORD Milliseconds);
//---------------------------------------------------------------------------
// v2.2 - QueReturnFreeItem - Returns an element with Free status back to the queue.
VOID __stdcall QueReturnFreeItem(HANDLE hQue, HANDLE hPkt);
typedef VOID (__stdcall *FN_QueReturnFreeItem)(HANDLE hQue, HANDLE hPkt);
//---------------------------------------------------------------------------
// v2.2 - QueGetFullItem - Returns an element with Full status from the queue.
HANDLE __stdcall QueGetFullItem(HANDLE hQue, DWORD Milliseconds);
typedef HANDLE (__stdcall *FN_QueGetFullItem)(HANDLE hQue, DWORD Milliseconds);
//---------------------------------------------------------------------------
// v2.2 - QueReturnFullItem - Returns an element with Full status back to the queue.
VOID __stdcall QueReturnFullItem(HANDLE hQue, HANDLE hPkt);
typedef VOID (__stdcall *FN_QueReturnFullItem)(HANDLE hQue, HANDLE hPkt);
//---------------------------------------------------------------------------
// v2.2 - QueUnblockWaitFree - Turns out all application threads awaiting for Free elements from awaiting status.
BOOL __stdcall QueUnblockWaitFree(HANDLE hQue);
typedef BOOL (__stdcall *FN_QueUnblockWaitFree)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueUnblockWaitFull - Turns out all application threads awaiting for Full elements from awaiting status.
BOOL __stdcall QueUnblockWaitFull(HANDLE hQue);
typedef BOOL (__stdcall *FN_QueUnblockWaitFull)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueStart - Creates and starts internal queue thread.
DWORD __stdcall QueStart(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueStart)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueStop - Stops internal queue thread.
DWORD __stdcall QueStop(HANDLE hQue);
typedef DWORD (__stdcall *FN_QueStop)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueIsStarted - Shows the status of the internal thread.
BOOL __stdcall QueIsStarted(HANDLE hQue);
typedef BOOL (__stdcall *FN_QueIsStarted)(HANDLE hQue);
//---------------------------------------------------------------------------
// v2.2 - QueSetOnThreadBegin - Sets the OnThreadBegin event.
FARPROC __stdcall QueSetOnThreadBegin(HANDLE hQue, FARPROC pfOnThreadBegin, DWORD_PTR Param);
typedef FARPROC (__stdcall *FN_QueSetOnThreadBegin)(HANDLE hQue, FARPROC pfOnThreadBegin, DWORD_PTR Param);
//---------------------------------------------------------------------------
// v2.2 - QueSetOnThreadEnd - Sets the OnThreadEnd event.
FARPROC __stdcall QueSetOnThreadEnd(HANDLE hQue, FARPROC pfOnThreadEnd, DWORD_PTR Param);
typedef FARPROC (__stdcall *FN_QueSetOnThreadEnd)(HANDLE hQue, FARPROC pfOnThreadEnd, DWORD_PTR Param);
//---------------------------------------------------------------------------
// v2.2 - QueSetOnDeleteItems - Sets the OnDelete event.
FARPROC __stdcall QueSetOnDeleteItems(HANDLE hQue, FARPROC pfOnDeleteItems, DWORD_PTR Param);
typedef FARPROC (__stdcall *FN_QueSetOnDeleteItems)(HANDLE hQue, FARPROC pfOnDeleteItems, DWORD_PTR Param);
//---------------------------------------------------------------------------
// v2.2 - QueSetOnPacketRecv - Sets the OnPacketReceive event.
FARPROC __stdcall QueSetOnPacketRecv(HANDLE hQue, FARPROC pfOnPacketRecv, DWORD_PTR Param);
typedef FARPROC (__stdcall *FN_QueSetOnPacketRecv)(HANDLE hQue, FARPROC pfOnPacketRecv, DWORD_PTR Param);
//---------------------------------------------------------------------------
// v3.1 - QueGetOrderingById - Return sort packets by ID flag
BOOL __stdcall QueGetOrderingById(HANDLE hQue);
typedef BOOL (__stdcall *FN_QueGetOrderingById)(HANDLE hQue);
//---------------------------------------------------------------------------
// v3.1 - QueSetOrderingById - Set sort packets by ID flag
BOOL __stdcall QueSetOrderingById(HANDLE hQue, BOOL bOrderingById);
typedef BOOL (__stdcall *FN_QueSetOrderingById)(HANDLE hQue, BOOL bOrderingById);
//---------------------------------------------------------------------------
// v3.1 - QueGetFreeItems - Returns an elements with Free status from the queue.
DWORD __stdcall QueGetFreeItems(HANDLE hQue, DWORD Milliseconds, PHANDLE pPkts, DWORD Count);
typedef DWORD (__stdcall *FN_QueGetFreeItems)(HANDLE hQue, DWORD Milliseconds, PHANDLE pPkts, DWORD Count);
//---------------------------------------------------------------------------
// v3.1 - QueReturnFreeItems - Returns an elements with Free status back to the queue.
VOID __stdcall QueReturnFreeItems(HANDLE hQue, PHANDLE pPkts, DWORD Count);
typ
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -