本帖最后由 wyl0205 于 2021-6-25 19:23 编辑 Local $tagSTRUCT = _
"BYTE sSerialNumber[48];" & _
"BYTE byAlarmInPortNum;" & _
"BYTE byAlarmOutPortNum;" & _
"BYTE byDiskNum;" & _
"BYTE byDVRType;" & _
"BYTE byChanNum;" & _
"BYTE byStartChan;" & _
"BYTE byAudioChanNum;" & _
"BYTE byIPChanNum;" & _
"BYTE byZeroChanNum;" & _
"BYTE byMainProto;" & _
"BYTE bySubProto;" & _
"BYTE bySupport;" & _
"BYTE bySupport1;" & _
"BYTE bySupport2;" & _
"WORD wDevType;" & _
"BYTE bySupport3;" & _
"BYTE byMultiStreamProto;" & _
"BYTE byStartDChan;" & _
"BYTE byStartDTalkChan;" & _
"BYTE byHighDChanNum;" & _
"BYTE bySupport4;" & _
"BYTE byLanguageType;" & _
"BYTE byVoiceInChanNum;" & _
"BYTE byStartVoiceInChanNo;" & _
"BYTE byRes3[2];" & _
"BYTE byMirrorChanNum;" & _
"WORD wStartMirrorChanNo;" & _
"BYTE byRes2[2];"
Local $tSTRUCT = DllStructCreate($tagSTRUCT)
DllCall($hDLL, "LONG", 'NET_DVR_Login', "str", '192.168.1.227', 'WORD', "8000", "str", "test", "str", "123456", "struct*", $tSTRUCT)
MsgBox(0, "连接成功", "序列号 " & DllStructGetData($tSTRUCT, 1)
|