Hey kids! Here's a great new feature in Windows 10
-
@dkf said in Hey kids! Here's a great new feature in Windows 10:
You'll get the right idea…
Ever the optimist, eh?
-
@boomzilla It's a tough job, but someone's gotta do it…
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
So it's broken.
Yeah, sounds like it.
Anyone know the ways in which IIS Express is broken so that some stuff doesn't work with it?
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
It's such a terrible idea to show an alert box during a drag&drop operation.
That already happens when working with Windows, and Windows prompts you for elevation in other instances. Why not this one?
-
@Polygeekery said in Hey kids! Here's a great new feature in Windows 10:
That already happens when working with Windows,
No?
@Polygeekery said in Hey kids! Here's a great new feature in Windows 10:
and Windows prompts you for elevation in other instances.
Yes, but only in other instances where it has full control to make it work. (For example, inside Explorer.)
I'm not even sure how the "elevate to complete a drag and drop operation" could work technically, and nobody here's provided a solution either. I'm not even sure it's possible to implement given the way Windows and its clipboard functionality works.
@Polygeekery said in Hey kids! Here's a great new feature in Windows 10:
Why not this one?
I'd like to see an example of Windows showing a dialog during a drag operation before I board this little train, ok?
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
I'm not even sure how the UAC prompt would work. I guess the theory is you drag & drop to elevated Foo, then the OS somehow detects this is happening and starts a new application elevated Bar (UAC prompt), and somehow passes the drag&drop data to Bar (I guess as a startup param? Or in a temp file?), then Bar hands off to Foo?
I suppose it could be done in some way similar to the fact that we can copy and paste between console applications and elevated/non-elevated applications.
-
@cheong The funny thing is, copy & paste does work (I don't know how exactly), but that article says it doesn't:
Components in Windows Vista block the following types of communication.
- Clipboard (copy and paste)
So. Go figure. I'm pretty sure copy & paste worked in Vista too.
-
@blakeyrat Yup. That won't work in Vista but they fixed it in Win7+. You can try it if you still have Win7 around with UAC enabled.
-
@cheong Ok; then maybe they do have a way to make drag & drop work.
But I'm not going to shift on my stances of:
- If you're running apps elevated all the time, stop it
- Showing a dialog during a drag operation is criminally awful UI
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
Showing a dialog during a drag operation is criminally awful UI
I don't see what's criminally awful about it if it happens right after the drop.
-
@flabdablet Well apparently Windows already does it! According to a person who was almost certainly lying.
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
I'm not even sure how the "elevate to complete a drag and drop operation" could work technically, and nobody here's provided a solution either. I'm not even sure it's possible to implement given the way Windows and its clipboard functionality works.
No one said that making software was going to be easy.
-
@boomzilla said in Hey kids! Here's a great new feature in Windows 10:
No one said that making software was going to be easy.
This is true.
-
@blakeyrat Are you talking about me? If you have Win7/8.X/10 with UAC enabled, why don't you try it can see it yourself?
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
Well apparently Windows already does it!
Yes, yes it does. When you try to move stuff from/to Program Files, you get UAC-like prompt right when you release mouse button. And if you want something non-elevation-related, try drag-and-dropping a file to a folder that already has a file with the same name.
-
@Gąska No, we've already established that that doesn't count, because the File Explorer is part of Windows and therefore "has full control".
-
@flabdablet wait, I must be missing something. Awful UI is acceptable if it's part of Windows?
-
@Gąska Of course, duh. Because then it must have been usability tested.
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
@Polygeekery said in Hey kids! Here's a great new feature in Windows 10:
That already happens when working with Windows,
No?
Yes: right-click-drag a file from any directory that Windows considers insecure to one it considers secure, and when you let go, a dialog box appears asking if you want to move or copy from that zone, and if you click yes, the context menu appears in the target destination.
Example from Google:
-
@LB_ Gruh, that's awful.
-
@cartman82 said in Hey kids! Here's a great new feature in Windows 10:
It just opens c:\Windows\System32\drivers\etc\hosts in the default editor, which is then unable to save (unless the editor is Notepad++, which has its own elevation system).
If you have an elevated Notepad++ running on 64-bit Windows and you open c:\Windows\System32\drivers\etc\hosts, you will get a different file than when you do the same with regular Notepad. This is because NPP is a 32-bit application and the file system redirection feature helpfully gives you the version from SysWoW64. If you want to open hosts in NPP you'll have to open the one at c:\Windows\sysnative\drivers\etc\hosts instead.
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
I'm not even sure how the "elevate to complete a drag and drop operation" could work technically, and nobody here's provided a solution either. I'm not even sure it's possible to implement given the way Windows and its clipboard functionality works.
Honestly, I'd have been fine if it at least informed the user why drag-and-drop stopped.
- Drag a file between contexts
- Release the file to
- System message pops up "Cannot complete this action because the window you are dragging from is unprivilleged and the window you are dragging to is privilleged"
(Obv. the message shouldn't be shit like my message)
Then at least users would know why, and there'd been fifty-billion fewer Stack Overflow questions about that.
-
@AlexMedia said in Hey kids! Here's a great new feature in Windows 10:
sysnative
Because 32-bit applications are totally going to expect that...
filed under: Just say this batch file dropped in my %windir% folder:
-
@Tsaukpaetra said in Hey kids! Here's a great new feature in Windows 10:
@AlexMedia said in Hey kids! Here's a great new feature in Windows 10:
sysnative
Because 32-bit applications are totally going to expect that...
That's the whole point, they shouldn't. The whole Sysnative/SysWoW64/System32 trickery is there to guarantee that 32-bit applications continue to work, even if they load %windir%\system32\shell32.dll directly into their main memory. A 32-bit process gets the 32-bit version of shell32.dll, a 64-bit version of the same executable would be served with the x64 version.
The sysnative shortcut is there to give access to the underlying native files, should there be a need for it. Editing the hosts file is one of those needs.
filed under: Just say this batch file dropped in my %windir% folder:
In that case, it would depend on your command interpreter which folder it would nuke. I think cmd.exe will always default to a x86 version, but Powershell can be launched in x86 as well as x64 mode :D
-
@AlexMedia said in Hey kids! Here's a great new feature in Windows 10:
In that case, it would depend on your command interpreter which folder it would be nuked.
Wow, that time it wasn't even autocorrect's fault. I tried to write
saw
but my muscle memory apparantly said "nope, you obviously meansay
!"
-
@cartman82 that's happening because you're trying to bind to all domains on that port. Limit it to localhost and that works just fine without elevating permissions.
Later comments indicate you know this, so here's follow up.
You can open the admin prompt and net add the user to be allowed to bind to that port, and it stays forever until removed. There local host bind is explicitly a security setting so apps can't arbitrarily make content from non elevated accounts available on the web for general consumption. Your use case is non standard (bit one i use a lot) because most web services are intended to be used with a provider, iis, Apache, whatever. Most localhost stuff that you're showing tends to be a privilege escalation abuse program.
I work a lot with api, and do a lot so i don't have to install a bunch of shit on friends computers. Just drop an exe and go, but include oauth support.
-
@AlexMedia holy, i was wondering why I couldn't edit my hosts file with NPP!
-
@blakeyrat said in Hey kids! Here's a great new feature in Windows 10:
Gruh, that's awful.
Duh, it's Windows.
-
@dkf said in Hey kids! Here's a great new feature in Windows 10:
For the purposes of understanding
Perhaps you want to look at who you @mentioned.
This would be alot easier if English people didn't make up weird words for everything.
It's like that bit Elayne Boozler or whoever has about guys making up words for boobs, only not as funny.
-
@FrostCat said in Hey kids! Here's a great new feature in Windows 10:
Perhaps you want to look at who you @mentioned.
No.
-
@dkf I remember it as "noodle noggin"... "noddy" didn't jog my memory enough.
edit: @Arantor dropping a "big ears" jogged it though.