Miscellaneous Debris
Avner Kashtan's Frustrations and Exultations
-
Impersonation and EFS
A quick reminder, after having spent too much time on it this morning: When impersonating a client context (in this case through SSPI over Remoting), not only can you not access external network … more
-
Outlook Miscellany: Erasing a name from the Autocomplete Cache
The drop-down list of names that Outlook gives us to auto-complete a name or address being written is stored in a file called <ProfileName>.NK2 in our Application Data\Microsoft\Outlook … more
-
Disposable Unimpersonation
A while ago, I discussed the possibility of using RevertToSelf() to avoid Double Hop problems. I suggested this pattern can be wrapped inside a class implementing IDisposable to easily use it. This … more
-
Control.DefaultValue isn't.
Here is a common source of confusion and frustration that's been experienced by most people developing a custom control in .NET - in WinForms,WebForms, Sharepoint and whatnot. One of the designer … more
-
Recycling Application Pools in IIS 6.0
A quick tip for those of us fond of iisreset. Restarting IIS takes quite a while. Sometimes 15-20 seconds, when my w3wp.exe processes are particularly unruly. In many cases, though, a full … more
-
Over-Abstraction? A debate.
I've been having an argument with a co-worker of mine about the KeyboardHook code I recently published here. His claim - by exposing a KeyboardHook object and letting users add Filters for … more
-
By Hook or by Crook
While trying to implement custom shortcut keys in Outlook, I came across an old column by Dino Esposito on implementing custom Windows hooks in .NET. At first I wanted to use it as reference and … more
-
Debug Timing (and a little design pattern, to boot)
In almost every bit of code I write that's actually destined to go into a real system, I find myself start to look for places to optimize code. But having read the writings of Rico Mariani, I am … more
-
I pity the fool who messes with CTRL-SHIFT-T.
The Visual Studio IDE, among its myriad options and combinations and features and so forth, has a trio of rather odd key combinations: CTRL-T - Interchanges the current letter and the one after it. … more
-
DatePicker Blues.
I'm really surprised at how hard it is to find a good DateTimePicker control that meets all our requirements: 1) Must suppost null dates, like the Due Date datepicker in Outlook tasks.2) Must be an … more