News for hackers. Stuff that matters.
Re:Win32 and .NET desktop apps can now be published in the W... by flohofwoe on Thursday September 15, 2016 @03:45AM (#12504154)
So if I understand it right, this is basically running apps in a Win32-emulator/sandbox where all 'unsafe' Win32 file and registry accesses are redirected into sandboxed locations.

I wonder why MS didn't go this way from the beginning instead of pushing that Frankensteinian half-desktop/half-mobile monstrosity called WinRT^H^H^H UWP on us.

The UWP application model has been modelled after the (now 10 years old) iOS/Android app model, created in a time when mobile devices had a lot less memory and performance than notebooks. Win32 is a pretty bad desktop API, but UWP somehow managed to be even worse because it is an outdated mobile OS ported back into the traditional desktop environment, and everything that is not 'mobile' (mouse, keyboard, window management, ...) has been implemented as an afterthought. For games (which I guess are the main usage for old-school desktop computers now), UWP is an especially bad fit.

I'm all for increasing security by running applications in a sandbox with granular permissions. However I am against 'walled gardens' curated by platform owners, this closed-platform model kills innovation. Unfortunately these two different things got thrown into the same pot by Apple, Google, and now MS. UWP somehow manages to combine the worst aspects of a dead app shop, a dead mobile platform, and walled-garden power phantasies.

All of these problems aren't fixed with the Win32 sandbox though, I'm pretty sure this is just an emulation layer on top of UWP, so all UWP limitations would still apply.

Re:Win32 and .NET desktop apps can now be published in the W... by icebraining on Thursday September 15, 2016 @03:59AM (#12504219)
The introductory phrase of UWP explains why they pushed it: "A Universal Windows Platform (UWP) app can run on any Windows-based device, from your phone to your tablet or PC". The point was getting more applications for their mobile platform by coaxing developers who might have otherwise built a desktop-only application. I'd say this new development is essentially an admission of defeat on mobile.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @04:04AM (#12504247)
The problem is that it may take their desktop with it. The industry doesn't want to invest in a desktop windows app because there is no clear direction. WPF/Win32 etc seem to be getting deprecated, but UWP is too limited.
Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @05:29AM (#12504569)
People who actually make money on windows development know that WPF and Win32 are not deprecated.

In fact, they don't really deprecate things. They may stop pushing something as the new hotness...but VB6 apps still run on windows. Those data access technologies that no one uses anymore...those still work on windows. If you are worried about your investment in time not being the new hotness, well that's one thing. If you are worried about your investment in effort being abandoned...they have done more to support backwards compatibility that I think is even reasonable.

Re:Win32 and .NET desktop apps can now be published in the W... by douche on Thursday September 15, 2016 @07:22AM (#12505053)
Silverlight may be the one glaring exception to that rule that I can think of. I don't think even IE or Edge support that anymore, which makes it dead.

I had an ex-girlfriend whose employer made a big bet on Silverlight for their web app platform... in 2012. Having to rewrite it all in HTML5 and JS a year later almost put them under.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @08:22AM (#12505458)
Actually, this is really weird, but yeah, you can still use Silverlight. Until very recently the inTune portal still used Silverlight.

I dig what you are saying though. They had some very confused messaging about the web as a platform for a long time. They finally stopped the BS, though, and have gone whole hog on the web.

Re:Win32 and .NET desktop apps can now be published in the W... by jmkni on Thursday September 15, 2016 @08:47AM (#12505626)
Couldn't they have ported to WPF with a lot less effort?
Re:Win32 and .NET desktop apps can now be published in the W... by douche on Thursday September 15, 2016 @09:53AM (#12506099)
Possibly, but this was, if I recall correctly, sort of a web-based MOOC thingy, so being browser-based was important.
Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @01:18PM (#12507950)
Silverlight was cross-platform.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @06:42AM (#12504827)
I'm not worried about it dissapearing, I'm worried the modern teh stack will change (it has). Then you start to either lose talent or rebuild the app.
Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @06:50AM (#12504867)
Do what now? Does that mean that I can't build apps in C++ anymore? Because it looks like I can and it also looks like I have more options than I ever have. In fact, I can finally use standard ISO c++ to do more than ever. Do you just mean one UI toolkit over another?

I wonder how Adobe has "kept talent" without rebuilding photoshop?

If you are worried about keeping your personal skills up to date and focused on an area that will earn you personally a living then you should know that some of the most highly paid people I've met in technology code for some of the most niche platforms. I mean serious f*ck off money. Say it with me...AS400. (Or ISeries or whatever the hell it's called now.)

Re:Win32 and .NET desktop apps can now be published in the W... by jasonkostempski on Thursday September 15, 2016 @10:00AM (#12506161)
"I wonder how Adobe has "kept talent" without rebuilding photoshop?"

By grabbing their users by the sack and demanding cash they don't deserve under threat of denying access to ones entire body of work.

Re:Win32 and .NET desktop apps can now be published in the W... by whiskahs on Thursday September 15, 2016 @11:50AM (#12507141)
They kind of did rebuild photoshop. And Acrobat. And pretty much every one of their products after the Creative Cloud move.
Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @12:17PM (#12507394)
Still using C++ and Windows API's. Also, how many prior versions of Photoshop still run on Windows with no modification? Probably all of them.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @05:23PM (#12509919)
Don't they use there own UI kit?
Re:Win32 and .NET desktop apps can now be published in the W... by walterbell on Thursday September 15, 2016 @11:56AM (#12507193)
Using which tech stack?
Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @04:16AM (#12504287)
UWP is limited as it is relatively new. The new (capabilities based) security model is clearly better than the old "if you are admin, you can do whatever you want" model. The old model was inadequate even at the start of the multimedia age, but it was not recognized until recently. The new sandboxed operation creates more portable and reproduceably operating apps.

The limitations will show, as more and more usecases will be attempted, and surely many will be addressed.

Personally I hope once the global filesystem concept will be gone, and apps will use isolated or shared storages where shared storage will get explicit access rights for each app/user it is shared with.

The old system had defaults originating from the single user non-multimedia usecases left over as a legacy, but currently we have so many things going on our computers, that privacy/security needs a rethinking of old concepts to cope with new challenges.

Re:Win32 and .NET desktop apps can now be published in the W... by userbinator on Thursday September 15, 2016 @04:50AM (#12504415)
Personally I hope once the global filesystem concept will be gone, and apps will use isolated or shared storages where shared storage will get explicit access rights for each app/user it is shared with

I very much hope not, since default and easy global sharing is what makes desktop OSs so very useful, and a lot of this sharing is spontaneous, creative, and ad-hoc. Besides, we already have things like filesystem permissions. By all means have a sandbox for "the untrusteds", but I don't want the equivalent of being forced into the "everything which is not explicitly allowed is forbidden" bureaucracy.

Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @06:57AM (#12504906)
Filesystem permissions cannot be controlled on a per app level. I do not like the fact, that an installation of for example a game needs admin rights, and has every chance to access data it should not be able to do.

I see your point, that the current solution offers a simple (and vulnurable solution). This is why I have said that these challenges need to be addressed. The current solutions may not be the best, but for an evolution to start we need to make changes, and try different approaches.

Re:Win32 and .NET desktop apps can now be published in the W... by userbinator on Thursday September 15, 2016 @07:07AM (#12504969)
Filesystem permissions cannot be controlled on a per app level.

I thought that's how Android's filesystem permission works? Each app runs as its own "user", and the FS permission bits restrict what it can access. This is a common solution in the Unix world. The problem on Android is that the filesystem is relatively hidden, and there's no easy way to change those permissions to allow more or less access.

Perhaps having the user as "root", along with all the actually-trusted apps (including those from the OS), and everything else setuid to their own per-app users, would be a useful configuration. Everything that's fully trusted is free to interact, while isolating those which aren't.

I do not like the fact, that an installation of for example a game needs admin rights, and has every chance to access data it should not be able to do.

That's possibly because of a need to install kernel-mode components (might be DRM related). If you're truly paranoid, VMs would be a better choice for isolation. But fundamentally, I don't believe in installing/using/changing apps that I don't completely trust, so perhaps this is a less of a problem for me and I'd rather have everything be "open".

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:12AM (#12504992)
> Filesystem permissions cannot be controlled on a per app level

They can if you adopt a user per app model. I thought this is what android/UWP did under the hood.

> I do not like the fact, that an installation of for example a game needs admin rights, and has every chance to access data it should not be able to do.

I doesn't. The biggest cause of this is the default of requiring admin to access program files, even if it's only touching it's own new folder.

Installing off steam happens without admin rights, apart from the VC++ redistributable (why is that a thing?).

Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Thursday September 15, 2016 @10:57AM (#12506675)
Steam is a terrible security example because Steam just gives Everyone Read/Write/Execute access to its folder(s) on Windows. The Steam solution to permissions on Windows has always been to basically just give up and not bother.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:37PM (#12510764)
Has it ever been a problem in practice? I'm not aware of it ever being one. Worst case scenario some malicious software destroys a game install and some saves, unpleasant but not the end of the world.

It comes with some great benefits though, like easy modding. Imagine if my text editor couldn't access my games folder?

Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Friday September 16, 2016 @10:55AM (#12514402)
Every day I'm surprised there hasn't been some malware that strikes at the default Steam install locations. The malware would not need admin access, could easily just wipe out the whole directory and be a noxious pest. More concerning, with a bit more work malware could trojan every EXE and/or DLL in the directory and likely won't get caught [1]. Once trojaned, all that any of the EXEs need to do is pop up a decent mockup of Steam's "Installing VC Redistributable" dialog [2] and get an easy UAC prompt opportunity (that Steam has already taught most gamers to expect semi-regularly) and from there full admin rights...

Not that I want to give malware devs any ideas, but I would be surprised if the above never crosses their minds. I suspect the main reason that it hasn't happened to date is that most malware devs are likely gamers and don't want to defecate where they eat.

As for the "great benefits", as much as I like modding, I like my system security a little bit better. There are definitely ways to do modding both securely and easily (and reproducibly) using things kind of like Docker containers and patch overlays, and I'd love it if, say, Valve invested some time into that as a secure platform service. For some of the games it supports Steam Workshop gets sort of, partly there, some of the time...

(But ultimately, I think game developers mostly don't care about security and Steam especially isn't very well incentivized to move out of the dark ages anytime soon. Bringing things back around, I'm hopeful that with the UWP platform exploring things like modding as a service we'll at least see that sort of innovation from Microsoft and the UWP converge towards the best of all worlds, eventually, hopefully...)

[1] Steam has a baroque assortment of DRM and anti-cheat mechanisms, obviously, but only while it is running and even then most of them are passive when a game isn't running. Steam absolutely has no idea what would be legitimate modding to game EXEs (as many mods do that) and what would be trojan-ing. Most people leave Steam running just about all the time, which locks down some of Steam itself, but not everyone does and all it takes is finding one good crash vector for Steam...

[2] Steam also seems to be several anti-practices here because as far as I can tell Steam doesn't ever bother to check if VC Redistributables or DirectX are already up to date on the system, it just spams the installers regardless...

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @01:20PM (#12507978)
Well, I mean, if I'm picking, I'd rather other applications can get to my games folder than the other way around.
Re:Win32 and .NET desktop apps can now be published in the W... by koko775 on Thursday September 15, 2016 @05:51AM (#12504636)
WinRT means:

* No app closure callbacks. You don't know if it's suspending or exiting.

* No "are you sure you want to exit? Save/Don't save" dialogs. If you close or crash pray your data was saved, and if it takes a long time to flush to disk...really pray.

* No minimizing/backgrounding to tray icons allowed.

Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @06:54AM (#12504893)
* I guess You can create a background worker handling persistence, which runs until completion even if the UI has been closed. (I have not used UWP yet)

* IMHO save/don't save dialogs are an usability antipattern.

* Tray icons are also something of a remedy of the past. They are now replaced by background operations and live tiles. I can see why those can be problems, I can imagine the usecases you would solve using those tools, but the new app model is build around a slightly different workflow.

But if you do not like the way to solve it as it is intended in the new app model, the solution is: report it/upvote it. If you tell your problems here, then some members of HN community will know it and understand it, but it is unlikely that it will be acted upon by Microsoft. For that you need to have your voice heard on their forums. (eg. feedback app, uservoice...)

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @01:21PM (#12507991)
> No "are you sure you want to exit? Save/Don't save" dialogs. If you close or crash pray your data was saved, and if it takes a long time to flush to disk...really pray.

Of course not, because it's supposed to also work on mobile. Does your iPad let applications prevent you from going back to the home screen?

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:39PM (#12510778)
> Of course not, because it's supposed to also work on mobile. Does your iPad let applications prevent you from going back to the home screen?

You don't see the problem here? Why do I want the restrictions of mobile phones limiting my desktop applications?

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @08:13PM (#12510986)
Well, for one, I don't see how else the concept of "universal apps" could possibly work.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @09:12PM (#12511238)
Neither do I. The question then becomes "should they exist?".
Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @09:33PM (#12511319)
It might not be a good fit for Office. But it seems fine for some applications.
Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Friday September 16, 2016 @01:04AM (#12511963)
It's totally OK for Office, just because you are accustomed to something. You can try the office mobile product line on windows 10 (available from the store), which is UWP, and pretty usable for its limited feature set, and the lack of "do you do u really really really want to quit?" modal popups.

Bashing UWP for advocating a different app model, and different UI design principles is like still using bash in 2016 because you are accustomed to ash from the 70s, and GUIs cannot go to start of line with Ctrl-A, thus saying they are inferior. Change has its positive sides and drawbacks, but in both cases it is mostly for the better.

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Friday September 16, 2016 @08:44AM (#12513590)
The whole point of getting Office is that practically every conceivable feature you could want is supported. If it's a limited feature set you might as well be using something else.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Friday September 16, 2016 @01:46AM (#12512092)
So I can install office from the app store and it can open documents I have in c:\docs?
Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Thursday September 15, 2016 @11:00AM (#12506707)
There is a Suspending callback.

Sounds like you have some misconceptions about the UWP/WinRT application lifecycle:

https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/a...

Re:Win32 and .NET desktop apps can now be published in the W... by m_fayer on Thursday September 15, 2016 @12:28PM (#12507493)
If I recall correctly, this callback has some undocumented deadline. Go over that and it's unceremoniously killed, great way to corrupt whatever you're desperately trying to write to disk.
Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Thursday September 15, 2016 @02:23PM (#12508508)
No, it is a pretty well documented deadline at this point. The callback is not intended for I/O work, but to clean up resources or to spin up any background tasks you might need for I/O. There are lots of articles full of best practices for the app lifecycle. Yes, it's different than Win32. Yes, it's influenced by mobile and low resource environments. But it's better for it and worth learning.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @06:49AM (#12504861)
I really disagree with UWP being a better model than limited UAC. Apps being able to talk to each other and the filesystem and interacting is what makes them useful. The linux/sudo approach is the best comrpomise between security and utility I'm yet to come across.

> The old system had defaults originating from the single user non-multimedia usecases left over as a legacy, but currently we have so many things going on our computers, that privacy/security needs a rethinking of old concepts to cope with new challenges.

I android has proven anything it's that sandboxed applications don't solve this problem.

Re:Win32 and .NET desktop apps can now be published in the W... by raesene6 on Thursday September 15, 2016 @07:03AM (#12504947)
Generally the way I've seen sudo implemented in all desktop linuxes is that after providing a password the process gets all access.

This to me isn't a great trade off as it relies on the user invoking the process understanding the security risks they're taking, which is a tricky one.

Sure you can do more with sudo, but unless it's the default, most people won't

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:16AM (#12505013)
There's room for improvemnt, it's just the best trade off I've seen. Windows has it's "click yes to continue" buttons, android has it's permissions thing that is useless to everyone. At least making people pause and type a password might make them think about what they're doing a bit.
Re:Win32 and .NET desktop apps can now be published in the W... by icebraining on Thursday September 15, 2016 @07:37AM (#12505144)
The best trade off I've seen is what Nokia's S60 (and iOS, or so I've heard) did: have granular permissions like Android, but show a dialog when the app first tries to use them, instead of having a laundry list at installation time.

You're more likely to think twice when you open your flashlight app and it asks "Do you want to allow [Flashlight App] to read all your contacts?"

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:53AM (#12505264)
It that once off or every time? There have been a few Android apps that started off OK and transitioned to spyware.
Re:Win32 and .NET desktop apps can now be published in the W... by rahoulb on Thursday September 15, 2016 @09:50AM (#12506072)
On iOS it asks the first time the app wants a particular permission but doesn't ask again. If you want to change your initial choice, you can head to Settings and view/change the grants/revokes by permission or by app.
Re:Win32 and .NET desktop apps can now be published in the W... by icebraining on Thursday September 15, 2016 @08:23AM (#12505465)
Can't remember. Still, I don't think it matters - if you know an app has turned into spyware, why are you opening it again instead of uninstalling it?
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @05:26PM (#12509940)
Because I don't know until I hear it somewhere.
Re:Win32 and .NET desktop apps can now be published in the W... by swiley on Thursday September 15, 2016 @05:53AM (#12504648)
The global filesystem is only a problem if you run lots of closed source/untrustworthy apps. Many of us don't and use the global filesystem very heavily and very much hope it does not go away.
Re:Win32 and .NET desktop apps can now be published in the W... by UK-AL on Thursday September 15, 2016 @06:23AM (#12504743)
Except for the vast majority of people are not IT experts. The store model is probably vastly safer for the average user.
Re:Win32 and .NET desktop apps can now be published in the W... by garganzol on Thursday September 15, 2016 @06:48AM (#12504853)
An average user is a myth. Every kind of average user has its own traits and they differ widely.

That's why there is such thing as system settings.

And yes, most desktop users are conscious when they work with files. Windows by default suggests "My Documents" folder as a target destination which is a pretty sane safe choice for all traits of average Joes.

Re:Win32 and .NET desktop apps can now be published in the W... by UK-AL on Thursday September 15, 2016 @11:56AM (#12507195)
That not the issue though. Programs that plaster your registry full of crap or replace or change os files etc
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Friday September 16, 2016 @02:04AM (#12512164)
That can be solved by not requiring admin privileges to install software and getting rid of the registry, which was an awful idea to begin with.
Re:Win32 and .NET desktop apps can now be published in the W... by swiley on Thursday September 15, 2016 @12:38PM (#12507592)
Don't run stuff as root then.
Re:Win32 and .NET desktop apps can now be published in the W... by swiley on Thursday September 15, 2016 @06:53AM (#12504884)
Honestly I think not having a global filesystem makes things harder for the "average user." Most college students aren't going to only keep their word documents in word for example, they need to email them and upload them to tools like blackboard.
Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @07:00AM (#12504928)
this is why shared storages are also needed, where apps can have a common view of some set of data.
Re:Win32 and .NET desktop apps can now be published in the W... by benaadams on Thursday September 15, 2016 @07:48AM (#12505219)
You go via the Save/Load dialogs which give access to a file; apps just aren't given non-permission/user-interaction file enumeration by default except for certain directories https://msdn.microsoft.com/en-gb/windows/uwp/files/file-acce...
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @08:00AM (#12505319)
Sounds like it's not possible to create a custom file manager, or space visualizer or anything like that?
Re:Win32 and .NET desktop apps can now be published in the W... by benaadams on Thursday September 15, 2016 @08:27AM (#12505486)
"System Level Access to All User Data" permission?

Though you can't submit to store with request for that permission: https://msdn.microsoft.com/windows/uwp/packaging/app-capabil...

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @05:29PM (#12509974)
All user data != All file system.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:24AM (#12505064)
But then all the data people care about will go there. How is that different from /home/user/ ?
Re:Win32 and .NET desktop apps can now be published in the W... by swiley on Thursday September 15, 2016 @07:23AM (#12505058)
In other words: a global filesystem.
Re:Win32 and .NET desktop apps can now be published in the W... by raesene6 on Thursday September 15, 2016 @07:01AM (#12504936)
Unless you or someone you trust has audited an application, all apps are untrusted and should be given least privileges (e.g. the mobile/UWP model).

Personally I'd suggest that the trade off is whether the risks of global filesystems are worth it in productivity benefits.

For standard users (non IT-professionals) I think they are not and for IT professionals, in most cases, I think they are.

Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @06:48AM (#12504854)
I guess you also only then need a firewall, if you use closed source software. When using OpenSource software you can always be sure that nothing will do unauthorized access to your network, willingly or accidentally...
Re:Win32 and .NET desktop apps can now be published in the W... by benaadams on Thursday September 15, 2016 @08:38AM (#12505559)
That's a bit naive... Just two examples

OpenSSL has had 22 vulnerabilities in 2016 so far [1]

Linux has has 336 vulnerabilities in 2016 so far [2]

[1] https://web.nvd.nist.gov/view/vuln/statistics-results?adv_se...

[2] https://web.nvd.nist.gov/view/vuln/statistics-results?adv_se...

Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @09:09AM (#12505761)
I tried to point to the flaw in the parent comment's logic with a sarcastic answer. :)
Re:Win32 and .NET desktop apps can now be published in the W... by pjmlp on Thursday September 15, 2016 @06:39AM (#12504811)
Average users don't ever know where they are supposed to save their files.

Every time I visit family I get to sort out the files scattered around the hard disk.

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @06:55AM (#12504897)
Every time I call my mum I have to call my dads mobile first because she can't remember to press the button to hang up. Ther's only so much simplyfying you can do.

Funilly enough, in her 70's now she's taught herself to use a computer and can manage documents in the file system.

Re:Win32 and .NET desktop apps can now be published in the W... by ahoka on Thursday September 15, 2016 @06:50AM (#12504868)
I think it's the same tier as global variables: an anti-pattern.
Re:Win32 and .NET desktop apps can now be published in the W... by pjc50 on Thursday September 15, 2016 @06:49AM (#12504863)
Desktop Windows is clearly the technology of the past, and I say that as someone who develops on it every day.

People starting in a green field will build a web or a mobile app if at all possible. The cases where it isn't are basically games and what used to be called "workstation" apps: big chunky tools like SolidWorks.

Even Adobe have retreated to the cloud, although the tools still run locally.

Re:Win32 and .NET desktop apps can now be published in the W... by nightski on Thursday September 15, 2016 @01:04PM (#12507822)
It is not in the least. There are millions of gamers, creative professionals, developers, engineers, etc.. that use desktop applications on Windows every single day and that will not change any time soon.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:41PM (#12510786)
And then you have Microsoft, trying their hardest to replace that desktop with a mobile OS.
Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @01:17PM (#12507939)
I agree with the sentiment but I think Win32 is with us forever (and because WinForms is just a wrapper on top of that that's probably safe too).
Re:Win32 and .NET desktop apps can now be published in the W... by mattmanser on Thursday September 15, 2016 @04:58AM (#12504456)
When they did it everything was still to play for on mobile, in their eyes at least.

If it had worked it would have been a smart move, but it was wildly over-optimistic.

Re:Win32 and .NET desktop apps can now be published in the W... by brudgers on Thursday September 15, 2016 @01:15PM (#12507925)
My understanding is that the 'Universal Windows Platform' is comprised of disparate multiple non-universal platforms such as desktops, mobile devices, servers, clouds, and IOT things. In practice this means that a UWP application targets one or more platforms and not all of them, e.g. Microsoft's UWP Camera app doesn't target the Azure or Server platforms.

My take is that Microsoft is in mobile for the long term and that its strategy has been to gradually migrate the target uses first addressed with Windows CE into the mainline of Windows and that Windows 10 is the realization of that strategy...we're back running Excel on mobile devices.

Windows Phone 7 was the first step in that direction. Windows Phone 8 and Windows RT were intermediate steps toward hardware agnosticism and away from Wintel strategies. I call it an intermediate step because apps for those platforms were [at least largely] forward compatible to Windows 10 and Windows 10 Mobile.

Re:Win32 and .NET desktop apps can now be published in the W... by pjc50 on Thursday September 15, 2016 @05:00AM (#12504468)
> manages to combine the worst aspects of a dead app shop, a dead mobile platform, and walled-garden power phantasies

Let's just take a moment to remember Games For Windows Live here.

Re:Win32 and .NET desktop apps can now be published in the W... by egeozcan on Thursday September 15, 2016 @04:05AM (#12504251)
> old-school desktop computers

I'm very sad about how accurate this generalization is.

Re:Win32 and .NET desktop apps can now be published in the W... by flohofwoe on Thursday September 15, 2016 @04:15AM (#12504280)
It wasn't meant in a negative way :) High-power gaming rigs will always require big and expensive cooling solutions.
Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @05:17AM (#12504527)
Wow.

UWP isn't a mobile OS ported to Windows. The whole WinRT is an OS and WinRT is an API set confused things. Forget that there was an ARM tablet. WinRT means the Windows Run Time. It's a set of API's that are built with the Windows OS. The "they made it mobile" part was really a side effect of trying to move to a more managed execution model where the OS took a more aggressive approach to managing the execution of an app over it's lifetime.

That has certainly needed improvement since it has been released. The WinRT API set was and is limited to a set of API's that are governed by a security broker. Applications are intended to have an identity, that is a SID, and execute in a very tight sandbox ala Chrome or Edge. It's a good model that makes some of the traditional malware vectors very hard to exploit. (You can't call LoadLibrary, for instance.)

OK. Set that aside for a moment. The desktop bridge uses technology called App-V that has been available to enterprise customers for a long time. It lets you run an installer and it watches all of the things it does to a clean system. It then bundles all of those things into a single file. It provides shims to your code that, for instance, will intercept your attempt to write to a global part of the registry and directs it to a registry hive kept in the file.

What they did in the anniversary edition was include parts of AppV in Win10, and they built a set of technologies that help with the process of "sequencing" a Win32/.Net app. Your application still runs just like it used to. There is no emulation. If you want to use API's that are available in UWP you need to follow some guidance on adopting them. Some are less invasive than others. Its a tradeoff, but it's one that you get to control as a dev and you can share a bulk of your code between Win7 and Win10 builds that use the strengths of both platforms.

So, its a sandbox, but not an emulator. The AppX installation method is more like the ".app" model in desktop OS X where you have a bundle of things for your app. There are also new security model things that you can adopt over time to gain access to new functionality.

You DO NOT have to install AppX packages from the store. You can download them from the Web and double click on them or use powershell to install them. The store is separate from the app packaging tech and API set.

Your comment reads like someone who doesn't use Windows enjoying some schadenfreude at the trouble they have had over the last couple of years. You're going to need to get over that. They are getting their shit together in a big way. Yes their mobile platform failed. They have admitted that and moved on. They produce a lot of software for Android and IOS. You can develop native Linux software with Visual Studio now. They contribute to Linux, Mesos, and Docker. .Net is open source. They contribute to FeeBSD. What more do you want? No one is making you use their stuff. You have never had more options. Why do you feel like that for you to be doing better other people have to be doing worse?

Re:Win32 and .NET desktop apps can now be published in the W... by flohofwoe on Thursday September 15, 2016 @05:35AM (#12504593)
I'm using Windows (and OSX, and Linux) everyday and recently started (but didn't finish because of UWP's weirdness) porting my 3D coding framework over to UWP. The same framework is also running on Win32, OSX, Linux (incl RaspPI), iOS, Android, HTML5 and PNaCl, so I do have some multi-platform experience. Of these platforms, and with the exception of Android NDK, UWP is the most painful to port to (if you're interested in the details: http://floooh.github.io/2016/08/20/uwp.html).

I want Windows to remain the dominant gaming platform. But for this, UWP is completely heading into the wrong direction.

Re:Win32 and .NET desktop apps can now be published in the W... by benaadams on Thursday September 15, 2016 @05:56AM (#12504659)
How does a conversion of one of your Win32 exes run with the new system?

Can do a manual convert (https://msdn.microsoft.com/en-us/windows/uwp/porting/desktop...) or use the tool to create the appx then double click to install, I believe...

Re:Win32 and .NET desktop apps can now be published in the W... by flohofwoe on Thursday September 15, 2016 @07:09AM (#12504977)
I'll try that as soon as I'm back on my Win10 laptop. If this works well it will be highly preferable over an UWP port, because too many compromises have to be made to run games on top of UWP.

What I'd actually like to see is a new application model and set of APIs 100% focuses on games, in the original spirit of DirectX. The required API footprint for games is minimal and should be easy to sandbox.

None of the existing desktop or mobile operating systems are particularly well suited for games, writing window system glue code and input event handling is terrible everywhere outside of the game console world.

Only Microsoft cared about that in the early days of DirectX and before it's gaming focus shifted to the Xbox and Xbox360. We need a new DirectX initiative which fixes the flaws of UWP for games. We don't need one generic solution which is supposed to work for all application types, we need a couple of highly specialised APIs and specialised application models. As Windows8 has shown, one-size-fits-all doesn't work.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @07:39AM (#12505156)
I think that's the direction things are heading. If you look at the compositor API's they are trying to make the whole XAML layer easier to interop with DX because DX is where the perf and flexibility are.
Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Thursday September 15, 2016 @11:39AM (#12507052)
Right, a big push to the XAML stack with the Anniversary Update was a lot of beefy pushes to what's called the "Visual Layer" [1]. A lot of the focus seems to be on making sure that you use high level XAML components and low level DirectX code side-by-side in the same windows.

[1] https://msdn.microsoft.com/en-us/windows/uwp/graphics/visual...

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @12:19PM (#12507402)
There is a guy named Kenny Kerr that produced a library called "Modern Windows" or something like that. He has a PluralSight course...I think at least part of it is on youtube...where he demonstrate using it.

His stuff is just worth watching anyway. Awesome Windows dev and ISO C++ content.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @06:44AM (#12504836)
Then this announcement is really for you because you can now use the code unmodified.
Re:Win32 and .NET desktop apps can now be published in the W... by pjc50 on Thursday September 15, 2016 @06:57AM (#12504907)
> schadenfreude

They've built up an enourmous reserve of ill-will that will take years to diminish. It wasn't all that many years ago that they were tangentially involved in SCO's last-ditch attempt to destroy Linux. The Win10 telemetry and forced-updates controversies are ongoing.

Everyone can see a possible future in which all the doors for shipping software to users' computers without paying 30% to the platform holder and submitting to their arbitary rules are closed. (The justification will be malware, of course). That day has not yet come, and it's not necessarily implied by WinRT, but it's a step in that direction.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @07:19AM (#12505034)
It actually was a long time ago that they were "tangentially involved in SCO". That was a very long time ago. My children were babies when that happened. THEY ARE IN COLLEGE NOW.

BTW. That was mainly IBM and Novell that you want to be mad at. Microsoft made a licensing deal with SCO to license Unix. Wow. You really have to reach back on that one. You could have more reasonably chosen how they treated Netscape.

No one ever seems to mention that they invested in Apple at a time when that investment KEPT APPLE ALIVE. But what ever.

The telemetry. It bother you. It doesn't bother me.

The "Get Windows 10" app that people were complaining about? Fair play. That was crap.

I don't know what to say about the last statement. Ask anyone in computer security and they will say, yes it would be great if walled gardens weren't the best idea for getting trustworthy software onto customer systems, but right now it is. They all think that Android is worse than IOS. Platforms that are used by a billion people where you can do anything you want produce malware. There isn't a way around that right now.

Solve that one and you too can be a billionaire.

My feeling is that the "ill will" is more emotional than it is reasonable. I know lots of admins who made up their mind about Windows in the Windows 2000 and 2003 era. It's vastly different in 2016 and far better. It's hardly recognizable.

EDIT: OK OK. Babies may have been hyperbole. Toddlers. They were toddlers.

Re:Win32 and .NET desktop apps can now be published in the W... by pjc50 on Thursday September 15, 2016 @08:43AM (#12505598)
(Someone has downvoted you, wasn't me)

In re malware and walled gardens, I certainly don't have a solution, but I've been writing a chart of the extent of the problem: https://github.com/pjc50/pjc50.github.io/blob/master/pentagr...

Re:Win32 and .NET desktop apps can now be published in the W... by pweissbrod on Thursday September 15, 2016 @10:47AM (#12506581)
2004-2012 I built apps of significant size/$$ for clients employing poorly recommended microsoft tech including silverlight, infopath, webforms, datasets, windows phone 7 and 8, WCF. Hindisght is 2020 and shame partially on me but when you try to be sensible and follow the official recommendations you develop this instinctive flinch over time that happens when microsoft comes out with re-inventions that converts your codebase into legacy overnight.

Yes youre right the 'new' microsoft under nadella is much more accommodating, however I was forced into a place where I couldnt afford the problems the 'old' microsoft bought and it was more logical to adopt open standards. Since I switched to open platforms microsoft has really improved but pardon me if I stick with my open tool stack for the foreseeable future until i see any compelling reason to switch back. In other words, microsoft is now 'as good' as many open platforms, but there isnt really a compelling reason to switch back.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @12:27PM (#12507483)
It's funny you mention InfoPath. I know of at least two multi-billion dollar companies that have significant amounts of development time tied up in InfoPath. All of its still running, with the plan being to replace it over time.

Still just sitting there running.

No need for pardon's. Use what you like that gets the work done. My instinctive flinch is different. We all have them. That's the thing, I don't want you to switch. I don't care. I love open source software. What I am saying is that they have a lot of effort built into backwards compatibility. And those solutions may not be the latest hotness, but you can still run them.

Re:Win32 and .NET desktop apps can now be published in the W... by syshum on Thursday September 15, 2016 @06:28AM (#12504761)
>What more do you want?

Them to open source and GPL all their software.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @06:43AM (#12504831)
MIT isn't good enough? Because they did use MIT.

I want Stallman to give more care to the defense industrial base that produces computers than to making sure that the same defense industrial base has a free f*cking compiler to use on the computers it makes.

Re:Win32 and .NET desktop apps can now be published in the W... by syshum on Thursday September 15, 2016 @07:14AM (#12504998)
>MIT isn't good enough? Because they did use MIT.

Windows is MIT licensed now?

System Center is MIT Licensed?

Visual Studio is MIT Licensed? (not core, core is not Visual Studio, it Github's Atom editor with a MS skin)

I believe I said ALL software not just some side projects

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @07:34AM (#12505123)
It's Visual Studio Code...not core. And it's not a skin it's an actively developed fork of Atom.

no windows is not MIT. nor is system center. PowerShell is. PowerShell DSC is. Their OMI broker for Linux is. .Net is. Asp.net is. Their Python tools are. The C# language is developed on video streams with the product team and the community. F# has been open source for a long time. They contribute to Linux, Mesos, docker, Hadoop, and other projects.

I wish that my side projects were as widely used as the C# compiler.

Why don't you just admit that there really isn't anything that they could do. If they did open source Windows you would read some comments written by other people about the code and "pronounce" it the worst code ever written. I can safely say that because here's the thing...YOU'VE ALREADY WON and it's still not enough. Open Source won. They were forced by the sheer awesomeness of it and the energy that people like you brought to open source development to adopt it and push it where ever they possibly can. TAKE YES FOR AN ANSWER. Is Windows OSS yet? Not yet, but that is coming. And when it happens you will still have something negative to say about it because this isn't about anything other than your emotional ties to this Microsoft in your mind that has been your favorite boogeyman for years. Guess what? There are actual boogeymen in the world, but focusing on a software vendor keeps you from having to face that. Every computer you buy validates and enforces the defense industrial base of the west. You capitalist infidel, you. All electronics, really, but computers in particular.

You want Visual Studio to be GPL'd? I want to stop flooding the third world with cheap weapons. They need water, not a text editor. Linux doesn't make them more free and Windows doesn't make you less free. It's a stupid privileged argument. Play with your toys and try to be nice, but don't tell me that your toys are more "right" than mine. That's just fucking stupid.

I have had entirely too much coffee, and it's probably time for a new HN account anyway. Cheers.

Re:Win32 and .NET desktop apps can now be published in the W... by chokolad on Thursday September 15, 2016 @10:50AM (#12506620)
> It's Visual Studio Code...not core. And it's not a skin it's an actively developed fork of Atom.

It's not a fork of Atom. It's independently developed text editor/light IDE which runs on Electron, chromium toolkit created by Atom devs to ease creation of desktop applications using JavaScript and HTML.

Re:Win32 and .NET desktop apps can now be published in the W... by youdontknowtho on Thursday September 15, 2016 @12:42PM (#12507637)
Indeed. I stand corrected, and thank you. That's good to know.
Re:Win32 and .NET desktop apps can now be published in the W... by analognoise on Thursday September 15, 2016 @02:58PM (#12508786)
"Win32 is a pretty bad desktop API" What's a better desktop API, and why?
Re:Win32 and .NET desktop apps can now be published in the W... by flohofwoe on Thursday September 15, 2016 @04:23PM (#12509511)
I'm not saying there's a better desktop API, just that Win32 is 'pretty bad' (IMHO). It's a collection of many small annoyances that have been stacked on top of each other over the decades. My favourite mis-feature is probably everything around UNICODE, such as hiding the xxxA() and xxxU() function names under global preprocessor defines, which in turn renames all your own functions which happen to have the same name. It's many little things like that. It's not that the OSX or Linux window system APIs are any better though.

IMHO a modern OS should only come with a low-level window-compositor which just composes canvases, and leaves rendering (including UI) to the user code through a thin 3D API. Other than that: file system, sockets, input, audio, and a very simple main-loop application model, all as C APIs which don't try to be object-oriented, leave all the different language bindings to the user-side.

Re:Win32 and .NET desktop apps can now be published in the W... by wolfgke on Thursday September 15, 2016 @04:30PM (#12509569)
> It's a collection of many small annoyances that have been stacked on top of each other over the decades.

You are describing X11?

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Friday September 16, 2016 @12:37AM (#12511860)
KDE/Qt, GTK/gnome.