Author Archives: mutexed

Passing postBackElement to endRequest handler

It would be nice if an endRequest() handler for the PageRequestManager had a means for getting the element that triggered the post back, like the get_postBackElement() of the BeginRequestEventArgs class. This usually isn’t necessary when you have only one UpdatePanel, … Continue reading

Posted in .NET, Programming | Leave a comment

FltReleaseContext() woes…

Reference counting is a _LOT_ easier when you can actually see the reference counts at some point. COM has this done wonderfully with IUnknown::AddRef()/Release() both returning a “not known to be accurate but potentially helpful for debugging” result. The documentation … Continue reading

Posted in Programming | Leave a comment

Service debugging…

Debugging services isn’t all that difficult, but one thing about it which is a pain is attaching a debugger before anything interesting happens. One little trick is to spin in a loop after the service has been created until a … Continue reading

Posted in Programming | Leave a comment

Lose the DEF file…

Typically you would use a .DEF file to specify exported functions in an EXPORT section, but you can accomplish the same thing with an embeded /EXPORT directive to the linker. I’ve found it easiest to do this directly from the … Continue reading

Posted in Programming | Leave a comment

FILE_FLAG_NO_BUFFERING…

So I’ve been trying to get good performance with minimal “resident” resource usage for JoinExt. I started out using buffered, overlapped I/O and a mapped view of the target file so I could read into the view and let the … Continue reading

Posted in Programming | Leave a comment

Bad style…

This is a peculiar piece of code from the MiniSpy sample of the IFS kit… FLT_POSTOP_CALLBACK_STATUS SpyPostOperationCallback ( __inout PFLT_CALLBACK_DATA Data, __in PCFLT_RELATED_OBJECTS FltObjects, __in PVOID CompletionContext, __in FLT_POST_OPERATION_FLAGS Flags ) { PFLT_TAG_DATA_BUFFER tagData; …. // // Log reparse tag … Continue reading

Posted in Programming | 2 Comments

Native NT program debugging…

The WinDbg .kdfiles command is pretty sweet for getting fresh system binaries onto a debugging target, but there is no user-mode equivalent which sucks big time.
This recently became even more frus… Continue reading

Posted in Programming | Leave a comment