Quantcast
Channel: The Old New Thing
Browsing all 24428 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

re: The x86 architecture is the weirdo: Structured exception handling

/*Table-based dispatch reduces the cost of SEH to zero when no exceptions are raised, since you don't have do anything to erect a frame or tear it down. -Raymond*/But it increases cost of raising...

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

"Wow64­Disable­Wow64­Fs­Redi­rection" (along with its siblings) is a strong contender in the "most awkwardly named function" competition. It's not just long, it's redundant and arrhythmical.

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

@JoshuaJust do what 99% of competent programmers who didn't read this blog and don't know about the SysNative trick would do:  See that redirect is disabled on a per thread basis and move whatever...

View Article

Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

Of course, that the redirection happens at all could be considered a global solution to a local problem.  "Say, we have a few apps that are broken.  I know, I'll fix this by changing how the filesystem...

View Article

Image may be NSFW.
Clik here to view.

re: The x86 architecture is the weirdo: Structured exception handling

@When no other OS requires it: On Linux you get to choose between sjlj (setjump-longjump, which saves all registers for every frame) and Dwarf2 (which uses tables).Now, I know that Dwarf2 is more...

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

Does Explorer itself disable the redirection and display you the "real" filesystem?

View Article

Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

@AC: Explorer is 64-bit so doesn't have to worry about Wow64 redirection.I wonder why C:\Windows\system64 was not used in the first place, but it's too late to worry about that now.

View Article

Image may be NSFW.
Clik here to view.

re: Microspeak: Science project

Back in the days when a Ferranti Argus was state of the art I had a college who programmed a "worm" using suitable characters that moved across each attached terminal in turn thereby endlessly...

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

@JM:Re: the "most awkwardly named function" competition, how about a function named disable_periodic_flows()? I kid you not.

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

>Alpha, MIPS builds of Windows NT that had no x86 emulation layers at all?  Failed.Hmm, I see to remember running x86 code on an Alpha workstation around the time of NT 3.1.Maybe it was a...

View Article

Image may be NSFW.
Clik here to view.

re: When will GetMessage return -1?

> "In practice, I suspect it always returns 1 for success."But is not contractually obliged to in Windows9, or after any security patch in Windows8 or earlier.Don't rely on undocumented...

View Article

Image may be NSFW.
Clik here to view.

re: When will GetMessage return -1?

@Random832:Surely if that was the case, it would also document it.For example, GetWindowLongPtr:If the function fails, the return value is zero. To get extended error information, call GetLastError.If...

View Article

Image may be NSFW.
Clik here to view.

re: When will GetMessage return -1?

@AsmGuru62: because WM_QUIT seems not to be window-specific, so specifying a particular HWND filters the message out.

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

/*Minor problems?  IA64 still had a 32-bit layer, and it failed./*I already wrote at some comment couple of years ago other way how WOW64 could be implemented - leave 32 system binaries and registry...

View Article

Image may be NSFW.
Clik here to view.

re: When will GetMessage return -1?

Silly question: Wouldn't it have been more intelligent, to fail with FALSE and QUIT...?

View Article


Image may be NSFW.
Clik here to view.

re: Does this operation work when file system redirection is disabled? The...

> C:\Windows\System32%PATH% hates your guts. It turned out that having a separate /bin and /lib was an idea so far ahead of its time that nobody grasped it, probably not even the UNIX guys.

View Article

Image may be NSFW.
Clik here to view.

re: Microspeak: Science project

Actually, Anonymous, baking *powder* doesn't have a chemical name, it is a mixture of stuff, as dave said.  The chemical name for baking *soda* is sodium hydrogencarbonate, or sodium bicarbonate.  

View Article


Image may be NSFW.
Clik here to view.

re: When will GetMessage return -1?

@Me: That means when such error is hit, the user will see the application suddenly disappear without reason. There won't even be a chance to write diagnostic logs somewhere.

View Article

Image may be NSFW.
Clik here to view.

re: When will GetMessage return -1?

@me. I get the impression that the function used to return non-zero on invalid parameter, so altering it to return 0 would cause apps that previously got lucky (passed invalid parameters, but no...

View Article

Image may be NSFW.
Clik here to view.

re: The x86 architecture is the weirdo: Structured exception handling

re: 15 byte instructions...The thing to keep in mind is that its OK to have long instructions if its due to their length adding value. One of the reasons for the long instructions is the powerful x86...

View Article
Browsing all 24428 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>