c# - uwp: desktop app, using "not allowed" APIs for app that will NOT be deployed via MS store. Does it work?
问题描述
I have a Windows desktop app, and I have a set of p/invoke APIs that I need to use, such as
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
static extern bool GlobalMemoryStatusEx([In, Out] MEMORYSTATUSEX lpBuffer);
I know this will fail certifications for MS store, but I don't care, since I do my own deployment. Having said that, the APIs work correctly in both Debug and Release.
Is there any issues I should be aware of - can this fail on my customer's machine?
解决方案
虽然不建议这样做,但一般来说,如果您不想将包上传到 Store,这将起作用。
推荐阅读
- python - 使用 python 扩展 gdb:ModuleNotFoundError
- node.js - AWS Lambda node.js 'ping' 模块权限错误
- php - intercom-php API - 使用电子邮件创建对话返回 400 错误请求
- c# - 如何在编辑器中为 Unity 中的旋转平台脚本添加列表
- python - 熊猫:用数据框添加星期日期
- php - 删除原始类别后如何将未分类的类别分配给帖子
- python - Discord;py 消息中的频道 URL
- docker - macOS 中我的 docker 映像的主机是什么?
- data-structures - 使用合并 2 个已排序列表的概念合并 k 个已排序链表的时间复杂度是多少?
- kotlin - 为什么要从 strings.xml 中删除第一个空格