Search results

  1. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Oopps...my fault ! Forget to copy values from lpOutBuffer in struDigitalChannelState structure ! We have to replace var byDigitalChanState = new byte[32]; byDigitalChanState = struDigitalChannelState.byDigitalChanState; for (int i = 0; i < 32; i++) { if...
  2. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi Curious, Don't know exactly if this is the same function used by from iVMS4200 but when connecting to one device, list of channels is displayed and depending if channel is used or not, they use different icon. Otherwise, I've found another function in SDK whick could probably be used for...
  3. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello Curious, You're right...didn't pay attention that size of byRes1 is 3 in SDK manual. Thanks for your thoughts. Yes, t's hard to know for sure whether our code is wrong or not but I'm wondering in this case how Hikvision client (ivms4200) can get this type of information Independently of...
  4. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Oh...found one error in your NET_DVR_CHAN_INFO structure. If you look at header file, byte byEnabled doesn't exist anymore. By the way, my goal to detect if channel is used or not is reminding me to use this byte ! Don't you ?
  5. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hey Curious, Yes, I've seen different structure from SDK manual and header file too ( NET_DVR_CHAN_INFO and NET_DVR_DEVICEID_INFO are concerned about this) ! Don't know which ones we have to use but the two give me the same result, error code 23 like you. I've tried several values for...
  6. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello, I've take a look at SDK manual but things aren't clear for me. Using NET_DVR_GetDeviceConfig() function with NET_DVR_GET_SIGNAL_SOURCE_INFO command (1654) means we have to define some values in instance of struct NET_DVR_DEVICEID_INFO like for example sDeviceID. But according to SDK...
  7. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi Curious, Thank you very much ! Will take a look at this in the week and try ton implement. Best Regards
  8. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hello, Any hint on how to get channel information status, specially if channel is actually used or not by NVR ? According to SDK I defined struct of NET_DVR_CHAN_INFO like below but I don't really know which function from dll I have to use to make call : public struct NET_DVR_CHAN_INFO...
  9. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi Darius, Try to modify structure of NET_DVR_ACS_EVENT_COND like this, maybe it can help : public struct NET_DVR_ACS_EVENT_COND { public uint dwSize; public uint dwMajor; public uint dwMinor; public NET_DVR_TIME struStartTime...
  10. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    HI curious, Just tested and seems working well with steps described above ;) Thank you. Best regards.
  11. A

    Creating C# application using Hikvision SDK for DS-7116HVI-SL

    Hi, Very useful informations here. Thank you very much curiousDev and others. Could you please tell me what is the best way to stop current channel preview and start a new one in the same pictureBox ? Can I just make a call to NET_DVR_StopRealPlay(), set a new channel number then call one more...
Top