﻿

{"id":16304,"date":"2023-10-07T11:18:00","date_gmt":"2023-10-07T02:18:00","guid":{"rendered":"https:\/\/www.bitstrong.com\/jp\/?p=16304"},"modified":"2023-12-25T11:16:18","modified_gmt":"2023-12-25T02:16:18","slug":"general-setting-callback-function-to-receive-exception-messages","status":"publish","type":"post","link":"https:\/\/www.bitstrong.com\/jp\/general-setting-callback-function-to-receive-exception-messages\/","title":{"rendered":"\u3010General\u3011Setting Callback Function To Receive Exception Messages"},"content":{"rendered":"<p><strong><span style=\"font-size: 18pt;\">\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/span><\/strong><\/p>\n<div>\/\/<\/div>\n<div>\/\/ Device Network SDK (General)<\/div>\n<div>\/\/ API Reference<\/div>\n<div>\/\/ NET_DVR_SetExceptionCallBack_V30<\/div>\n<div>\/\/ Sample Code of Setting Callback Function to Receive Exception Messages<\/div>\n<div>\/\/<\/div>\n<div>\/\/Register callback function for receiving exception messages<\/div>\n<p>NET_DVR_SetExceptionCallBack_V30(WM_NULL, NULL, g_ExceptionCallBack, NULL);<\/p>\n<div>\/\/Callback function receive exception message<\/div>\n<div>void CALLBACK g_ExceptionCallBack(DWORD dwType, LONG lUserID, LONG lHandle, void *pUser)<\/div>\n<div>{<\/div>\n<div>char tempbuf[256];<\/div>\n<div>ZeroMemo case EXCEPTION_AUDIOEXCHANGE: \/\/Voice talk network exception<\/div>\n<div>sprintf(tempbuf,&#8221;Voice talk network exception!!!&#8221;);<\/div>\n<div>TRACE(&#8220;%s&#8221;,tempbuf);&#8221;\/\/TODO: close voice talk<\/div>\n<div>break;s&#8221;case EXCEPTION_ALARM:\/\/Alarm upload network exception<\/div>\n<div>sprintf(tempbuf,&#8221;Alarm upload network exception!!!&#8221;);<\/div>\n<div>TRACE(&#8220;%s&#8221;,tempbuf);&#8221;\/\/TODO: close alarm upload<\/div>\n<div>break;s&#8221;case EXCEPTION_PREVIEW:\/\/Network preview exception<\/div>\n<div>sprintf(tempbuf,&#8221;Network preview exception!!!&#8221;);<\/div>\n<div>TRACE(&#8220;%s&#8221;,tempbuf);\/\/TODO: close network preview<\/div>\n<div>break;&#8221;,case EXCEPTION_SERIAL:\/\/Transparent channel transmission exception<\/div>\n<div>sprintf(tempbuf,&#8221;Transparent channel transmission exception!!!&#8221;);<\/div>\n<div>TRACE(&#8220;%s&#8221;,tempbuf);<\/div>\n<div>\/\/TODO: close transparent channel<\/div>\n<div>break;s&#8221;case EXCEPTION_RECONNECT:\/\/Preview reconnect<\/div>\n<div>break;EXCEPTION_RECONNECT:\/\/Preview reconnect<\/div>\n<div>break;<\/div>\n<div>default:<\/div>\n<div>break;<\/div>\n<div>}<\/div>\n","protected":false},"excerpt":{"rendered":"\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0 \/\/ \/\/ Device Network SDK (General) \/\/ API Reference \/\/ NET_DVR_SetExceptionCallBack_V30 \/\/ Sample Code of Setting Callback Function to Receive E...","protected":false},"author":2,"featured_media":15936,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[107],"tags":[],"class_list":["post-16304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-camera-connection"],"_links":{"self":[{"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/posts\/16304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/comments?post=16304"}],"version-history":[{"count":1,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/posts\/16304\/revisions"}],"predecessor-version":[{"id":16305,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/posts\/16304\/revisions\/16305"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/media\/15936"}],"wp:attachment":[{"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/media?parent=16304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/categories?post=16304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bitstrong.com\/jp\/wp-json\/wp\/v2\/tags?post=16304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}