|
| GAMES++ |
|
|
|
 |
|
| BROWSER UTILITIES |
|
|
|
 |
|
| AFFILIATES |
|
|
|
 |
|
| ADVERTISEMENT |
|
|
|
 |
|
| ADVERTISEMENT |
|
|
|
 |
|
System Parameters
Xbox Programming & Development
/*
Reads the system's parameter settings and returns the string it was executed with.
Incredible useful for debugging and for programs that care where and how they are started.
*/
char *GetParams( void )
{
DWORD error=0;
DWORD pdwLaunchDataType;
static LAUNCH_DATA pLaunchData;
error = XGetLaunchInfo( &pdwLaunchDataType,&pLaunchData);
if( error == ERROR_NOT_FOUND )
return 0;
if( error == ERROR_SUCCESS )
{
switch(pdwLaunchDataType)
{
case LDT_FROM_DASHBOARD:
return (char*)&pLaunchData;
break;
case LDT_FROM_DEBUGGER_CMDLINE:
return (char*)&pLaunchData;
break;
case LDT_TITLE:
return (char*)&pLaunchData;
break;
default:
return (char*)&pLaunchData;
break;
}
}
}
|
|
|