MSDNのCREATESTRUCTに関するヘルプには Because the lpszClass member can contain a pointer to a local (and thus inaccessable) atom, do not obtain the class name by using this member. Use the GetClassName function instead. と書かれているようだが。 lpszClassに直接アクセスしてクラス名を取得しようとするな ってことじゃねえの。