The Windows Pidgin Options plugin has an option you can use to set pidgin
to run at startup. Once that is done pidgin will, by default, start in the
state it was when you last quit. If you want to always start in a given
state you can set that in the preferences.
-Etan