NET_MESSAGE_CALLBACK_EX¶
Callback Definition¶
1 | |
Function Description¶
Data callback when alarm occurs.
Parameter Description¶
| Parameters | Type | Remark |
|---|---|---|
| lCommandin | LONG | Command handle, refer to NET_SDK_DEVICE_MSG_TYPE. |
| lUserIDin | LONG | User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx. |
| pBufin | char* | Buffer pointer, received using the corresponding data structure depending on the lCommand. |
| dwBufLenin | DWORD | Buffer length. |
| pUserin | void* | User-defined parameters are passed in when setting the callback function. |
Return Value¶
-
type:BOOL
-
remark:Meaningless
Remarks¶
Depending on the lCommand, the corresponding data structure is as follows:
| lCommand | pBuf structure | Remarks |
|---|---|---|
| NET_SDK_ALARM | NET_SDK_ALARMINFO_EX*(dwBufLen / sizeof(NET_SDK_ALARMINFO_EX)) | - |
| NET_SDK_RECORD | NET_SDK_RECORD_STATUS_EX*(dwBufLen / sizeof(NET_SDK_RECORD_STATUS_EX)) | Currently only IPC is not supported |
| NET_SDK_IVM_RULE | NET_SDK_IVM_RULE_STATUS*(dwBufLen / sizeof(NET_SDK_IVM_RULE_STATUS)) | Currently only IPC is supported |
| NET_SDK_TRADEINFO | - | Not used yet |
| NET_SDK_IPCCFG | - | Not used yet |