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

Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

@Gabe: That's what I'm doing now, but Acrobat Reader is a bit too touchy about it. @Adam V: Nice link.

View Article


Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

Oh, drag and drop. I hope DDE is not part of it. Just a couple days ago, I had IE hanging when trying to open favorites, and WinZip hang while executing shell commands. Turned out the "music player and...

View Article


Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

@Gabe: DELETE_ON_CLOSE requires that drop targets opened the files with FILE_SHARE_DELETE, which few apps do.

View Article

Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

I suppose it should be possible to write a file system filter driver that allows applications to access virtual content by path. But personally, I consider software that doesn't support virtual drops...

View Article

Image may be NSFW.
Clik here to view.

re: I know that an overlapped file handle requires an lpOverlapped, but why...

@Cheong: And the implementation for the file calls has to be different anyway since even though the Win32 API's can be synchronous, the relevant function calls still have different names, arguments,...

View Article


Image may be NSFW.
Clik here to view.

re: There's the interface contract, and there are the implementations of the...

Tud, a lot of people here are frustrated by the commenting system. When you post a comment here it gets swallowed. Always. The only way to prevent it is to copy the text of your post, refresh the page...

View Article

Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

At the next boot of the OS, when you application starts of if you want to be "aggressive" when you application closes ? [That may be too soon. The application you dropped the file onto may have...

View Article

Image may be NSFW.
Clik here to view.

re: I know that an overlapped file handle requires an lpOverlapped, but why...

"As originally designed, Windows NT had a fully asynchronous kernel. There was no such thing as a blocking read. If you wanted a blocking read, you had to issue an asynchronous read (the only kind...

View Article


Image may be NSFW.
Clik here to view.

re: I know that an overlapped file handle requires an lpOverlapped, but why...

Pete, I'm just guessing here, but presumably this is because to be able to do something with it you'd always have to wait on it.

View Article


Image may be NSFW.
Clik here to view.

re: I know that an overlapped file handle requires an lpOverlapped, but why...

@pete: I think there aren't any asynchronous function that return handles. The handles must be valid when being returned or you can't use them.

View Article

Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

So without perfect_knowledge_TM you can never remove those files? Memory leak heaven!

View Article

Image may be NSFW.
Clik here to view.

re: Why do we need IsDialogMessage at all?

I think this misconception may be in some part based on the HTML event model, where inner "controls" [elements], like the OK button, naturally pass the event on to the parent if they do not handle it...

View Article

Image may be NSFW.
Clik here to view.

re: You already know the answer since you do it yourself

@Ben: "So you can detect when the user replaces your clipboard content with a new cut/copy, and then you can delete the temporary files. Some applications also call EmptyClipboard if they still have...

View Article


Image may be NSFW.
Clik here to view.

re: Why do we need IsDialogMessage at all?

Wow, I reinvented IsDialogMessage once.

View Article

Image may be NSFW.
Clik here to view.

re: I know that an overlapped file handle requires an lpOverlapped, but why...

@Medinoc: The signed-ness of an integer is all in your head. It turns out that casting a pointer to an integer of a different signed-ness works on all CPUs that Windows runs on.

View Article


Image may be NSFW.
Clik here to view.

re: Why do we need IsDialogMessage at all?

Sometimes I skip an entry since it seems so high above my head in Windows API world, but I gave this one a shot and learned something interesting about Windows and events in general :) I'll take this...

View Article

Image may be NSFW.
Clik here to view.

re: What is the real maximum length of a DNS name?

I Regularly.WorkSomeWhereWith.AReallyLongDomainNames.com. I wish the limit was much, much shorter.

View Article


Image may be NSFW.
Clik here to view.

re: Why do we need IsDialogMessage at all?

Thanks for the explanation! I also see now that I formulated my question in a misleading way; instead of 'has focus' I should've written 'active'. Let me explain: This question came up when I was to...

View Article

Image may be NSFW.
Clik here to view.

re: There's the kernel, and there's kernel mode - confusing historical...

I like these stories that start with "Let's turn the clock back...".

View Article

Image may be NSFW.
Clik here to view.

re: There's the kernel, and there's kernel mode - confusing historical...

... and not everything that runs in 'kernel mode' is 'the kernel'.  Most of the kernel-mode stuff is part of the exec.

View Article
Browsing all 24428 articles
Browse latest View live


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