Excellent sample.
Is there any way to apply this technique to OpenFileDialog, which is non-inheritable, or must I revert to Win32?