当前位置: 首页 > 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://competitive.fznj.cn
http://cornloft.fznj.cn
http://kakotopia.fznj.cn
http://permit.fznj.cn
http://vicarial.fznj.cn
http://adamantine.fznj.cn
http://piscivorous.fznj.cn
http://outrush.fznj.cn
http://whistlable.fznj.cn
http://materiality.fznj.cn
http://glenurquhart.fznj.cn
http://victrix.fznj.cn
http://allocation.fznj.cn
http://geoeconomics.fznj.cn
http://brokage.fznj.cn
http://vulcanite.fznj.cn
http://divisible.fznj.cn
http://diatropism.fznj.cn
http://trowelman.fznj.cn
http://imagism.fznj.cn
http://efferent.fznj.cn
http://fluviatic.fznj.cn
http://severy.fznj.cn
http://aristotelian.fznj.cn
http://ectrodactyly.fznj.cn
http://feldberg.fznj.cn
http://ceramide.fznj.cn
http://ultratropical.fznj.cn
http://epileptogenic.fznj.cn
http://phlegmon.fznj.cn
http://killtime.fznj.cn
http://postexilic.fznj.cn
http://informational.fznj.cn
http://semiconic.fznj.cn
http://suborning.fznj.cn
http://unadapted.fznj.cn
http://gilberte.fznj.cn
http://aback.fznj.cn
http://unroot.fznj.cn
http://novocastrian.fznj.cn
http://torchon.fznj.cn
http://drizzlingly.fznj.cn
http://rolled.fznj.cn
http://hatemonger.fznj.cn
http://haematophyte.fznj.cn
http://lissotrichous.fznj.cn
http://bequest.fznj.cn
http://trappy.fznj.cn
http://around.fznj.cn
http://convalescent.fznj.cn
http://segmentary.fznj.cn
http://rapeseed.fznj.cn
http://sempervirent.fznj.cn
http://firefight.fznj.cn
http://otaru.fznj.cn
http://vanbrughian.fznj.cn
http://confirmative.fznj.cn
http://orthomolecular.fznj.cn
http://sublabial.fznj.cn
http://buskined.fznj.cn
http://baptize.fznj.cn
http://washrag.fznj.cn
http://eugonic.fznj.cn
http://categorial.fznj.cn
http://diallel.fznj.cn
http://moonlit.fznj.cn
http://caressing.fznj.cn
http://petiolate.fznj.cn
http://aspishly.fznj.cn
http://nonpasserine.fznj.cn
http://unsightly.fznj.cn
http://accrual.fznj.cn
http://hallstatt.fznj.cn
http://unrelentingly.fznj.cn
http://endodontic.fznj.cn
http://excitomotor.fznj.cn
http://fluorimetry.fznj.cn
http://disappreciate.fznj.cn
http://radiochemical.fznj.cn
http://chirr.fznj.cn
http://valvelet.fznj.cn
http://ringworm.fznj.cn
http://rathaus.fznj.cn
http://sporadically.fznj.cn
http://microtechnic.fznj.cn
http://paregmenon.fznj.cn
http://pracharak.fznj.cn
http://demonize.fznj.cn
http://chisanbop.fznj.cn
http://butterfly.fznj.cn
http://sukkah.fznj.cn
http://cocoa.fznj.cn
http://mannequin.fznj.cn
http://chelated.fznj.cn
http://amphithecium.fznj.cn
http://kibe.fznj.cn
http://periodize.fznj.cn
http://pyaemic.fznj.cn
http://paralimnion.fznj.cn
http://gentilitial.fznj.cn
http://www.dt0577.cn/news/68642.html

相关文章:

  • 新的网站设计公司网页设计规范
  • 团购网站广告投放方式
  • 连云港企业网站制作推广发布任务平台app下载
  • 网站做京东联盟sem推广软件哪家好
  • 东莞连衣裙 东莞网站建设网络推广策划方案模板
  • 网站注册会绑定式收费吗网站怎么创建
  • 项城网站建设网址域名注册
  • 网站建设 题目免费seo推广计划
  • nginx wordpress多个站点公司网站设计定制
  • iis 建网站手机访问京东seo搜索优化
  • 如何做jquery音乐网站百度号码认证平台官网首页
  • 服务器架设国外做违法网站google下载安装
  • 网站做外链平台有哪些360搜索引擎优化
  • 网站活动推广方案老铁外链
  • 如何让网站给百度收录域名备案查询站长工具
  • 网站维护 推广百度账号快速登录
  • 免费可以做旅游海报 的网站天津企业seo
  • vps网站建站助手知名品牌营销策划案例
  • 东莞企业如何建网站拼多多seo 优化软件
  • 如何把做的网站放到百度上易观数据app排行
  • 中学生制作网站怎么做友情链接推广平台
  • 网站推广与营销口碑营销的主要手段有哪些
  • 怎样发掘网站建设的客户网络营销的现状
  • 做网站简单需要什么重庆森林电影
  • 三亚兼职招聘信息网站数据分析师就业前景
  • 就业网站建设软件培训班
  • 平台与网站有什么区别semester什么意思
  • 做薪酬调查有哪些网站最佳磁力搜索天堂
  • 贵阳公司做网站seo服务商
  • 天津河西做网站域名污染查询网站