什么是 WINAPI_FAMILY_ONECORE_APP? [英] What is WINAPI_FAMILY_ONECORE_APP?
问题描述
我在 GitHub 上查看 Microsoft 的 OpenSSL 端口.一个提交引起了我的注意,它是
我认为这是对 所有 Windows 平台(移动、PC、xbox、hololens、IoT).
<块引用>Windows OneCore
Windows OneCore 是适用于任何设备(手机、平板电脑、台式机、或物联网.Windows 10 提供了一组 API 和 DDI 接口,它们是多个版本的 Windows 10 通用.这组界面是称为OneCore.使用 OneCore,您还可以放心,驱动程序和使用 OneCore 接口创建的应用程序将在多个设备.
I was looking through Microsoft's port of OpenSSL on GitHub. One commit caught my eye, and it was Adding Win10 Universal Platform support. In the commit, a partition called WINAPI_FAMILY_ONECORE_APP
showed up. However, I'm not finding much about it when searching. There are two hits in English and 22 hits in Chinese (see below).
Following What’s new in Visual Studio Tools for Windows 10 Preview provides some quasi-bullet points with no explanations:
- new API partition WINAPI_FAMILY_ONECORE_APP
- ARM 64
- Universal CRT
- ...
I have two questions:
What is
WINAPI_FAMILY_ONECORE_APP
, and how is it intended to be used?Can I use
WINAPI_FAMILY_ONECORE_APP
to detect Aarch64/ARM64 on Windows 10 gadgets?
Here's Microsoft's use of it in OpenSSL (snipped from ssl/dtls1.h
; the C++ comment was moved above the define for readability):
// winsock.h not present in WindowsPhone/WindowsStore, defining the expected struct here
#if defined(WINAPI_FAMILY) && ( WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_ONECORE_APP)
struct next_timeout {
long tv_sec;
long tv_usec;
} next_timeout;
I think this is API which are available to all windows platforms (mobile, PC, xbox, hololens, IoT).
Windows OneCore
Windows OneCore is a platform for any device—phone, tablet, desktop, or IoT. Windows 10 provides a set of API and DDI interfaces that are common to multiple editions of Windows 10. This set of interfaces is called OneCore. With OneCore, you can also be assured that drivers and apps that are created using OneCore interfaces will run on multiple devices.
这篇关于什么是 WINAPI_FAMILY_ONECORE_APP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!