John T
John T

Reputation: 97

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?

Upvotes: 1

Views: 84

Answers (1)

Roy Li - MSFT
Roy Li - MSFT

Reputation: 8666

Although this is not recommended, generally speaking, if you don't want to upload the package to the Store, this will work.

Upvotes: 2

Related Questions