Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Nifty Win32 tricks.   (RSS)
A co-worker came by to ask what he thought was a coding "style" question that turned into a correctness issue, and I thought I'd share it. Someone had defined two COM interfaces: interface IFoo : IUnknown { HRESULT FooMethod1(); HRESULT FooMethod2(); Read More...
After I posted my article on the SHAutoComplete , I mentioned it to one of my co-workers. His response "I'm not surprised - The shell gets all the cool APIs". And they do. For instance, my "new favorite" Win32 API : RegGetValue began it's life as the Read More...
For whatever reason, most of the toy applications I tend to write seem to end up being dialog based applications. I'm not 100% sure why, it probably has to do with the fact that the dialog box editor makes it really easy to drop controls on a page. One Read More...
We recently got an internal report from someone using the internal audio notification APIs that they were leaking memory and they wanted to help from us debugging the problem. I took a look and discovered that the problem was a circular reference that Read More...
Yesterday, Richard Gemmell left the following comment on my blog (I've trimmed to the critical part): I was referring to the way that IE can be tricked into calling the Firefox command line with multiple parameters instead of the single parameter registered Read More...
As a senior developer at Microsoft, you often find yourself participating on a number of v-teams. One of the v-teams I'm on is responsible for approving new services added to Windows. As I've mentioned before, I'm a nutcase about stuff running on my machines, Read More...
As I've mentioned , applets can be a plague on your system. The annoying thing is that it's possible to write applets that aren't so horrible. And most of the mitigations are really just common sense ideas - there's nothing spectacularly complicated in Read More...
I've been wanting to write this one for a while, but continually got sidetracked, but there's no time like the present... Many others (I'm too lazy to chase down references) have commented on the phenomenon known as " bloatware " (also known as "craplets" Read More...
Chris Pirillo had an interesting blog post the other day with the rather uninformative title of " Windows Vista Sound Problems ". He has a reader who built a shutdown sound that is almost 2 minutes long, and that reader is upset that the system isn't Read More...
Windows is rather famous for its ability to run applications that were written for previous versions of the Windows operating system. Volumes have been written about Microsoft's backwards compatibility. On the other hand, people have long criticized Microsoft Read More...
Microsoft can be quite obsessive about instrumentation and metrics. We have a significant body of tools that perform static and dynamic analysis on our operating systems. Some of these tools (for example prefast and FxCop ) are public, some are not. Friday Read More...
Yesterday , at the close of my article about adding notifications support to the cheesy OSD application, I mentioned that there was one remaining problem. The problem is actually a big deal - as it's written right now, the application can't filter out Read More...
Yesterday, I added support for metering to the cheesy OSD application, today I want to add in the one thing that's been missing: notification of external volume changes. The good news is that once again, it's pretty easy to add support. All you need to Read More...
Yesterday I posted a quick&dirty OSD (complete with cheesy text graphics). Today I'm going to add support for metering to the application. Start with yesterdays application and add (this is the routine that actually implements the meter): struct TimerContext Read More...
Last week I posted a code snippet that showed how to change the master volume in Vista . That snippet doesn't really show the coolness that exists within the IAudioEndpointVolume interface. One of my favorite features is the support for OSD's (On Screen Read More...
More Posts Next page »
 
Page view tracker