now how would I get the parameters from the second instance?
IPC - Inter-Process Communication. Basicly, you send a message from the second instance to the first. I'm sure some Win32 API shark is going to come around soon enough with an implementation for Windows. Or you could look at MSDN if you're feeling particularly adventureous.