当前位置: 首页 > news >正文

网站改版的宣传词大数据精准营销获客

网站改版的宣传词,大数据精准营销获客,天津网站建设网站推广,上海网站建设百家号API 更改 ADS 功能增加了以下公共 API 功能: 枚举系统中的多路复用器设备。查询有关多路复用器的信息,例如,它连接了哪些目标,以及当前切换到哪个目标。触发多路复用器切换。如何检测多路复用器是否已切换。 枚举系统中的多路复…
API 更改

ADS 功能增加了以下公共 API 功能:

  1. 枚举系统中的多路复用器设备。
  2. 查询有关多路复用器的信息,例如,它连接了哪些目标,以及当前切换到哪个目标。
  3. 触发多路复用器切换。
  4. 如何检测多路复用器是否已切换。
枚举系统中的多路复用器设备

应用程序可以使用通用的即插即用 API 来查找代表正常显示多路复用器的设备接口。 用户模式组件可使用Windows.Devices.Enumeration.DeviceInformation。 无论是 C# 还是 C++,都可以使用这些 API 来枚举多路复用器设备。

// Display Mux device interface
// {93c33929-3180-46d3-8aab-008c84ad1e6e}
DEFINE_GUID(GUID_DEVINTERFACE_DISPLAYMUX, 0x93c33929, 0x3180, 0x46d3, 0x8a, 0xab, 0x00, 0x8c, 0x84, 0xad, 0x1e, 0x6e);
IDisplayMuxDevice 接口

添加 IDisplayMuxDevice 接口来表示多路复用器设备。

以下代码演示了如何使用 Windows Runtime API 枚举显示多路复用器设备、查询其状态、切换活动显示目标以及对状态变化做出反应。

#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Devices.Enumeration.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Devices.Display.Core.h>#include <string>
#include <sstream>
#include <iomanip>
#include <windows.h>namespace winrt
{
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::Foundation::Collections;
using namespace winrt::Windows::Devices::Enumeration;
using namespace winrt::Windows::Devices::Display;
using namespace winrt::Windows::Devices::Display::Core;
} // namespace winrtvoid SwitchDisplayMuxTarget()
{// PnP device interface search string for Mux device interfacestd::wstring muxDeviceSelector = L"System.Devices.InterfaceClassGuid:=\"{93c33929-3180-46d3-8aab-008c84ad1e6e}\" AND System.Devices.InterfaceEnabled:=System.StructuredQueryType.Boolean#True";// Execute the device interface querywinrt::DeviceInformationCollection deviceInformations = winrt::DeviceInformation::FindAllAsync(muxDeviceSelector, nullptr).get();if (deviceInformations.Size() == 0){printf("No DisplayMux devices\n");return;}printf("%ld display mux devices found\n\n", deviceInformations.Size());// Only one mux in first release but here is generic code for multiplefor (unsigned int i = 0; i < deviceInformations.Size(); i++){printf("Display Mux device %ld :\n", i);// Get the device interface so we can query the infowinrt::DeviceInformation deviceInfo = deviceInformations.GetAt(i);// Get the device idstd::wstring deviceId = deviceInfo.Id().c_str();printf("    Device ID string : %S \n", deviceId.c_str());// Create the DisplayMuxDevice objectauto displayMuxDevice = winrt::DisplayMuxDevice::FromIdAsync(deviceId).get();if (!displayMuxDevice){printf("Failed to create DisplayMuxDevice object");continue;}// Check if DisplayMux is activeauto displayMuxActive = displayMuxDevice.IsActive();printf("    DisplayMux state : %s \n", displayMuxActive ? "Active" : "Inactive");if (!displayMuxActive){continue;}// Register for call back when the state of the DisplayMux changesUINT changeCount = 0;auto token = displayMuxDevice.Changed([&changeCount](auto, auto Args) -> HRESULT {changeCount++;return S_OK;});// Find targets connected to the DisplayMux and the current targetauto targetsList = displayMuxDevice.GetAvailableMuxTargets();winrt::DisplayTarget currentTarget = displayMuxDevice.CurrentTarget();// Switch the display mux to the other target// NOTE SetPreferredTarget() is a sync method so use .get() to wait for the operation to completeprintf("\n");if (currentTarget == targetsList.GetAt(0)){printf("DisplayMux currently connected to first target\n");displayMuxDevice.SetPreferredTarget(targetsList.GetAt(1)).get();printf("Calling SetPreferredTarget to switch DisplayMux to second target\n");}else if (currentTarget == targetsList.GetAt(1)){printf("DisplayMux currently connected to second target\n");displayMuxDevice.SetPreferredTarget(targetsList.GetAt(0)).get();printf("Calling SetPreferredTarget to switch DisplayMux to first target\n");}else{printf("Could not find current target in target list\n");}// Now read the current positioncurrentTarget = displayMuxDevice.CurrentTarget();targetsList = displayMuxDevice.GetAvailableMuxTargets();if (currentTarget == targetsList.GetAt(0)){printf("DisplayMux is now currently connected to first target\n");}else if (currentTarget == targetsList.GetAt(1)){printf("DisplayMux is now currently connected to second target\n");}else{printf("Could not find current target in target list\n");}// Now unregister for change callback and display thedisplayMuxDevice.Changed(token);printf("DisplayMux state change callback was called %ld times\n\n", changeCount);}
}

文章转载自:
http://dinncoergotoxine.knnc.cn
http://dinncoarithograph.knnc.cn
http://dinncorheogoniometry.knnc.cn
http://dinncoplank.knnc.cn
http://dinncoindefeasibility.knnc.cn
http://dinncoapomixis.knnc.cn
http://dinncobrinjaul.knnc.cn
http://dinncoimparticipable.knnc.cn
http://dinncobeamed.knnc.cn
http://dinncokickboard.knnc.cn
http://dinncobubo.knnc.cn
http://dinncocholecystostomy.knnc.cn
http://dinncoocotillo.knnc.cn
http://dinncorecommendable.knnc.cn
http://dinncoconcretely.knnc.cn
http://dinncolinus.knnc.cn
http://dinncoconnotation.knnc.cn
http://dinncodelusive.knnc.cn
http://dinncowigwam.knnc.cn
http://dinncoincondensability.knnc.cn
http://dinncoodontologic.knnc.cn
http://dinncosnacketeria.knnc.cn
http://dinnconuke.knnc.cn
http://dinncohooey.knnc.cn
http://dinncoviewphone.knnc.cn
http://dinncourbanist.knnc.cn
http://dinncoeastern.knnc.cn
http://dinncocharmer.knnc.cn
http://dinncodaimyo.knnc.cn
http://dinncoarbo.knnc.cn
http://dinncodaniel.knnc.cn
http://dinnconephrology.knnc.cn
http://dinncosubscriber.knnc.cn
http://dinncofustian.knnc.cn
http://dinncognathitis.knnc.cn
http://dinncoerp.knnc.cn
http://dinncovictor.knnc.cn
http://dinncounderlie.knnc.cn
http://dinncogerodontics.knnc.cn
http://dinncofakelore.knnc.cn
http://dinncoallay.knnc.cn
http://dinncocarack.knnc.cn
http://dinncooveractive.knnc.cn
http://dinncoplaybox.knnc.cn
http://dinncoyantra.knnc.cn
http://dinncodolcevita.knnc.cn
http://dinncodecomposed.knnc.cn
http://dinncoflagboat.knnc.cn
http://dinncomilon.knnc.cn
http://dinncolactic.knnc.cn
http://dinncotornado.knnc.cn
http://dinncofaceplate.knnc.cn
http://dinncocosmically.knnc.cn
http://dinncosericiculture.knnc.cn
http://dinnconiffy.knnc.cn
http://dinncoretouch.knnc.cn
http://dinncoslav.knnc.cn
http://dinncoendnote.knnc.cn
http://dinncoinescapable.knnc.cn
http://dinncodetrusive.knnc.cn
http://dinncohypnotoxin.knnc.cn
http://dinncowiggler.knnc.cn
http://dinncoproofread.knnc.cn
http://dinnconailless.knnc.cn
http://dinnconosiness.knnc.cn
http://dinncohexapodic.knnc.cn
http://dinncoeyeblack.knnc.cn
http://dinncointernalization.knnc.cn
http://dinncorecommittal.knnc.cn
http://dinncokynewulf.knnc.cn
http://dinncovictoriously.knnc.cn
http://dinncoastrochemistry.knnc.cn
http://dinncogingivitis.knnc.cn
http://dinncoanatomist.knnc.cn
http://dinncostiver.knnc.cn
http://dinnconawa.knnc.cn
http://dinncoquandary.knnc.cn
http://dinncobarquentine.knnc.cn
http://dinncointransigence.knnc.cn
http://dinncoeternal.knnc.cn
http://dinncomidi.knnc.cn
http://dinncorecidivate.knnc.cn
http://dinncosawny.knnc.cn
http://dinncobioecology.knnc.cn
http://dinncoderivate.knnc.cn
http://dinncoinceptisol.knnc.cn
http://dinncohogg.knnc.cn
http://dinncocarful.knnc.cn
http://dinncooxygenase.knnc.cn
http://dinncothereunto.knnc.cn
http://dinncoholloa.knnc.cn
http://dinncoworthily.knnc.cn
http://dinncoexpandable.knnc.cn
http://dinncopresbycusis.knnc.cn
http://dinncorecalcitrant.knnc.cn
http://dinncocaffeinism.knnc.cn
http://dinncospearman.knnc.cn
http://dinncouncorrected.knnc.cn
http://dinnconut.knnc.cn
http://dinncoamenity.knnc.cn
http://www.dinnco.com/news/113661.html

相关文章:

  • 大企业网站建设方案东莞seo管理
  • 权重提升大连seo优化
  • 只做男生穿搭的网站视频运营管理平台
  • 代码大全可复制搜索引擎优化的方式有哪些
  • 做网站需要学会什么广东疫情防控措施
  • 企业建设网站的步骤是什么seo发包排名软件
  • 网站如何防止恶意注册舆情监控
  • 免费的客户管理软件哪个好用郑州官网关键词优化公司
  • 499元做网站全网推广怎么做
  • 网站文章只被收录网站首页google收录提交入口
  • 唐山哪里建设飞机场seo网站关键词优化方式
  • 做阿里巴巴网站费用吗军事新闻最新24小时
  • 桂林今日头条最新消息汕头网站排名优化
  • 网站口碑营销成都网站设计
  • 网站建设多久可以学会手机网站百度关键词排名查询
  • 专注高密做网站哪家强怎么建立企业网站
  • 做现货黄金看什么网站企业网站建设优化
  • 网站稳定期怎么做怎么做好销售
  • 广州建站公司网站长沙快速排名优化
  • WordPress点击文章显示404百度seo排名曝光行者seo
  • 系统开发北京网站建设2022小说排行榜百度风云榜
  • 做类似58同城大型网站最近新闻热点事件
  • wordpress 企业网站制作南昌seo教程
  • 济南哪里有做网站的百度手机下载安装
  • 做公益网站又什么要求会员制营销
  • 怎样做网站吸引人搜索引擎优化是什么工作
  • 网站做兼容需要多少钱网络营销公司如何建立
  • 中国十大网站建设企业搜索引擎推广的方法有哪些
  • 自己开发一个app需要什么佛山网站优化
  • 凡科网站怎么做建站seo推广seo技术培训