Well, allegedly, something like this works:
http://forum.thegamecreators.com/?m=forum_view&t=45658&b=22
Never tried it myself, so I don't know for certain. Once thing I do know is that it can be a darned sight shorter.
#include <windows.h>
int main(int argc,char **argv)
{
return WinMain((HINSTANCE)(GetModuleHandle(0)),0,GetCommandLine(),SW_SHOW);
}
You'll need to test it to tell for certain though.
Just call your own function instead of WinMain to get your initial window open, and only call the WinMain function when you want to enter the DSDK code.