I assume you used Spy++ to get the ClassName. The class name for a dialog is not #32770 (Dialog), rather it's just #32770.