Live data from Hacker News

Windows Code Samples

microsoft.github.io

101–107 of 107 posts

Re: Windows Code Samples

#101
post #96

Earlier quoted context omitted.

"Regress" would be more appropriate, it's taking away useful features. Gimping what an application is capable of should not be the solution to security.

How are you going to secure user against key loggers when there’s a “useful feature” allowing any app to listen keyboard events of the whole windows station? Keep in mind there’re another useful features, allowing users to run an unsigned application from any source, with administrator privileges.

With a permission setting?

There are permissions for which apps can use my Mic, Camera, Contacts, Call history, etc... Microsoft could easily add one that lets me run UWP apps with a higher privilege that allows IPC with Win32 apps.

As it is right now, you can't even build a UWP app that can talk to a server app running on the same exact machine. Instead, you have to build all of your UWP apps so that they depend on some Internet server.

Re: Windows Code Samples

#102
post #7
post #3

Too bad the WSL (Windows Subsystem for Linux) is not open source. It is already an impressive piece of software, but many features are still lacking (e.g., neither Valgrind nor gperftools work right now), and it could benefit greatly from community involvement. Fittingly, issue #1 in the WSL bug tracker is requesting it to be open-sourced: https://github.com/Microsoft/BashOnWindows/issues/1

For development, is WSL good enough to replace dual-boot?

I don't have WSL available, but I would love some numbers for tasks like cloning a large repository with git and running cmake. These things tend to be slow on Windows due to fork, see for instance this comparison for Windows vs. Linux in a VM:

https://gist.github.com/jibsen/7ebeddde3bc2bfd421b96ae53a824...

Re: Windows Code Samples

#103
post #99

Earlier quoted context omitted.

The beauty of NDK is not that it offers a ton of APIs (it does not), it's that it's not overcomplicated and lets you reasonably easily incorporate a lot of the same libs you're already using on Linux anyway, and build them pretty much exactly the same as any other Linux lib, with minimal, if any modifications using tried and true Linux toolchains. It took me much less time and effort to get my stuff going under NDK.…

From what I read you have some very specific needs and for various reasons also have decided to use tools/languages every one here advices against. This is all fine, but your first post make it sounds like UWP in general is crap, which I don't agree with.

If it's not crap, how come there are so few decent apps in the Windows App Store?

Re: Windows Code Samples

#105

Earlier quoted context omitted.

How are you going to secure user against key loggers when there’s a “useful feature” allowing any app to listen keyboard events of the whole windows station? Keep in mind there’re another useful features, allowing users to run an unsigned application from any source, with administrator privileges.

With a permission setting? There are permissions for which apps can use my Mic, Camera, Contacts, Call history, etc... Microsoft could easily add one that lets me run UWP apps with a higher privilege that allows IPC with Win32 apps. As it is right now, you can't even build a UWP app that can talk to a server app running on the same exact machine. Instead, you have to build all of your UWP apps so that they depend on…

Permission settings only work for the minority of people who’re into that information security thing.

Look at the mobile apps.

Many apps require geolocation permission, not because they need it, but because they include some ads, and ad provider who made their ad serving control needs GPS coordinates to serve better ads.

The majority of users don’t care.

They just click “I agree” on those permission popups, so unlimited number of third-parties able to literally track their each step.

Re: Windows Code Samples

#106

Earlier quoted context omitted.

With a permission setting? There are permissions for which apps can use my Mic, Camera, Contacts, Call history, etc... Microsoft could easily add one that lets me run UWP apps with a higher privilege that allows IPC with Win32 apps. As it is right now, you can't even build a UWP app that can talk to a server app running on the same exact machine. Instead, you have to build all of your UWP apps so that they depend on…

Permission settings only work for the minority of people who’re into that information security thing. Look at the mobile apps. Many apps require geolocation permission, not because they need it, but because they include some ads, and ad provider who made their ad serving control needs GPS coordinates to serve better ads. The majority of users don’t care. They just click “I agree” on those permission popups, so unlimi…

Right. And I'm assuming since you care about it then you would not allow the permission.

So, you're covered. What's your problem now?

Re: Windows Code Samples

#107

Earlier quoted context omitted.

> On some Windows platforms, win32 API is emulated and very limited. hm, very limited, maybe. There is actually no public Win32 for the platforms you have in mind, I think, but a subset is common with UWP. However, it's not emulated... and probably nearly all of Win32 are standing right there, only you just can't use it... For ex in Win8 RT the whole (or nearly whole) Win32 was there and could even be used by a non-W…

Yeah, I know there was classic Win32 environment on Windows 8 RT, just it wasn’t public. However we’re talking about UWP apps here, Windows 8 is unrelated. And there’s no Win32 environment on Windows Mobile 10, or Windows 10 IoT Core.

I don't think there is any emulation of Win32 either? You just have some of the functions; those that are part of UWP.
Post reply on HN