The poster does not give any blame to who ever came up with this:
> 1. Right-click on your desktop and select New Folder
2. Type in or copy and paste the following as the name:
GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
3. Hit Enter and the folder icon will change to GodMode
4. Enjoy easy access to all Windows 10 settings!
I know that the exception came from GetDisplayNameOf handling it incorrectly, but this whole thing begs the question:
The main difference however is that a binary produced by Oracle AOT is to a big extent just a pre-populated HotSpot cache, whereas Excelsior JET has been AOT-centric since day one. In practice that means that with Oracle AOT you have to ship both the native binary and the original class files to your customers, and with Excelsior JET you only ship the native binary, which makes reverse engineering your application more difficult.
I recall us being quite surprised when a customer survey had shown that IP protection is more important than application performance for many of our customers, even though it was just a byproduct of our optimization efforts.
It doesn't. AIUI jlink creates a binary image of the VM + referenced classes. AOT is a lot easier to do with modules implemented and I'm sure it's on the roadmap, but not available yet.
> Deleting the God Mode folder fixes the problem, because that is the only filesystem object for which GetDisplayNameOf() returns a malformed structure.
I wouldn't call it "malformed" -- the OS simply returned a null pointer: "the field that is supposed to point to the buffer containing the resulting string is NULL." Which in C means "nothing there." And the Java native interface code didn't check for that (it could have returned an empty Java string in that case), but dereferenced the null pointer instead. "Fail fast" indeed.
Problem is, the God Folder dates back to Vista and it is the Windows 10 Creators Update that began setting that field to NULL. Apparently the author of that change did not foresee any backward compatibility issues.
See my other comment for the details, I believe now that the field was actually not set to null, the returned structure has a union which is documented to be able to be of different types. It's surely the type STRRET_CSTR that wasn't covered by Java, the API is then valid before and after the update, returning the structure with STRRET_CSTR and zeroes in the union is valid.
If we're talking about this [1] call, then it could be argued that it's malformed. Unless I missed it, the documentation does not specify that a NULL pointer may be returned there. Defensive programming practice says it's wise to check for NULL, but the function, as documented, would appear to be behaving incorrectly.
Looking this more carefully, I guess the pointer to the STRRET always remains valid but whoever implemented the decoding of STRRET didn't cover all the cases of uType, and the GodMode had a different uType than others that the developers tested? In that case instead of the pointer to null the API actually returned an empty string (uType STRRET_CSTR actually then means that what would be a null pointer are actually the bytes of the string, and being zero, the string is empty, saving one allocation), but the returned structure wasn't properly understood by the caller.
You're probably right. Looks like the article mentions it fills in the structure, not setting the pointer to NULL (which as you point out would be impossible because it's not a pointer to a pointer).
> "Let"? Given the limited intelligence of other Earth species, I'm unsure how else operating systems would've been developed.
I suspect that you missed fhood's joke, or else I missed yours.
(It is not unreasonable to suppose that another path to the existence of operating systems would be the, perhaps human-guided, evolution of progressively less primitive programs. I am not sure that I'd want to use the result, but it's at least a conceiveable way for history to have developed.)
> 1. Right-click on your desktop and select New Folder 2. Type in or copy and paste the following as the name: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} 3. Hit Enter and the folder icon will change to GodMode 4. Enjoy easy access to all Windows 10 settings!
I know that the exception came from GetDisplayNameOf handling it incorrectly, but this whole thing begs the question:
Why is this a good way to do shortcuts?