| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | #include <windows.h>
 | 
					
						
							|  |  |  | #include <stdio.h>
 | 
					
						
							|  |  |  | #include <shellapi.h>
 | 
					
						
							|  |  |  | #include "master.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int WINAPI WinMain( | 
					
						
							|  |  |  | 	HINSTANCE hInstance, | 
					
						
							|  |  |  | 	HINSTANCE hPrevInstance, | 
					
						
							|  |  |  | 	LPSTR lpCmdLine, | 
					
						
							|  |  |  | 	int nCmdShow) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | 	LPWSTR *szArglist; | 
					
						
							|  |  |  | 	int nArgs; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs); | 
					
						
							| 
									
										
										
										
											2008-11-18 19:21:42 -05:00
										 |  |  | 	if(NULL == szArglist) | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | 	{ | 
					
						
							| 
									
										
										
										
											2008-11-18 19:51:52 -05:00
										 |  |  | 		puts("CommandLineToArgvW failed"); | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | 		return 1; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	init_factor_from_args(NULL,nArgs,szArglist,false); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	LocalFree(szArglist); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } |