Beispiel #1
0
/**
 * Launch the primary external viewer.
 */
void LaunchPrimaryExternalViewer(void)
{
	TCHAR szLaunch[MAXFN] = {_T('\0')};

	lstrcat(szLaunch, options.szArgs);
	lstrcat(szLaunch, _T(" \""));
	lstrcat(szLaunch, szFile);
	lstrcat(szLaunch, _T("\""));
	if (!ExecuteProgram(options.szBrowser, szLaunch))
	ERROROUT(GetString(IDS_PRIMARY_VIEWER_ERROR));
}
Beispiel #2
0
/**
 * Launch the secondary external viewer.
 */
static void LaunchSecondaryExternalViewer(void)
{
	TCHAR szLaunch[MAXFN] = {_T('\0')};

	lstrcat(szLaunch, options.szArgs2);
	lstrcat(szLaunch, _T(" \""));
	lstrcat(szLaunch, szFile);
	lstrcat(szLaunch, _T("\""));
	if (!ExecuteProgram(options.szBrowser2, szLaunch))
		ERROROUT(GetString(IDS_SECONDARY_VIEWER_ERROR));
}
Beispiel #3
0
static void dfload(RDArsrc *r)
{
	APPlib *args=NULL;
	int x=0;

	FINDRSCGETINT(r,"MODULE LIST",&x);
	args=APPlibNEW();
	addAPPlib(args,modsavl->libs[x]);
	ExecuteProgram("dfload",args);
	if(args!=NULL) freeapplib(args);
}
Beispiel #4
0
void KernelMain(void)
{
	ConsolePrintLine("Fetching program list... ");
	
	LoadProgramList();
	
	ConsolePrintLine("Jumping to init");
	
	while(true)
	{
		//char* ProgramName = (char*) ExecuteProgram("Init");
		
		//if (!StringEqual(ProgramName, "Init"))
		//{
		//	ExecuteProgram(ProgramName);
		//}
		
		ConsolePrintLine(StringFormat(Testa, "1 Returned: %u", ExecuteProgram("Snake")));
		ConsolePrintLine(StringFormat(Testa, "2 Returned: %u", ExecuteProgram("Snake")));
	}
}
Beispiel #5
0
void doreport(RDArsrc *mainrsrc)
{
	int selected=0,selectedm=0;
	APPlib *args=NULL;

	if(rptavl->numlibs==1 && !RDAstrcmp(rptavl->libs[0],"No Report Definitions Available")) return;
	if(FINDRSCGETINT(mainrsrc,"MODULE LIST",&selectedm)) return;
	if(FINDRSCGETINT(mainrsrc,"REPORTS AVAILABLE",&selected)) return;
	args=APPlibNEW();
	addAPPlib(args,modlst->libs[selectedm]);
	addAPPlib(args,rptavl->libs[selected]);
	ExecuteProgram("doreport",args);
	if(args!=NULL) freeapplib(args);
}
Beispiel #6
0
static void gsvscn(RDArsrc *r)
{
	APPlib *args=NULL;
	int x=0;
	char udesc=FALSE;

	readwidget(r,"USE DESCRIPTION");
	FINDRSCGETCHAR(r,"USE DESCRIPTION",&udesc);
	FINDRSCGETINT(r,"MODULE LIST",&x);
	args=APPlibNEW();
	addAPPlib(args,modsavl->libs[x]);
	if(udesc) addAPPlib(args,"TRUE");
		else addAPPlib(args,"FALSE");
	ExecuteProgram("gsvscn",args);
	if(args!=NULL) freeapplib(args);
}
Beispiel #7
0
int _tmain(int argc, TCHAR* argv[])
{
    int result;

    ENSURE_DEBUGGER();

    if (argc == 1 || (argc == 2 && !_tcsicmp(*(argv + 1), _T("/?"))))
        return PRINT_USAGE(VER_FULLVERSION, COPYRIGHT_INFO);

    // TODO:
    // /r (raw) do not interpret internal cmd commands as cmd /d /c command
    // /n do not copy env vars

    SetUp();
    result = (!IsVistaOrAbove() || IsElevated()) ? ExecuteProgram() : ExecuteStub();
    return CleanUp(result);
}
Beispiel #8
0
void LoopWaiting(void)
{
	char* line;
	char** args;
	int status;

	do
	{
		printf(">> ");
		signal(SIGINT, signalHandler);
		signal(SIGTSTP, signalHandler);
		line = InputReadLine();
		args = ProcessSplitLine(line);
		status = ExecuteProgram(args);

		free(line);
		free(args);
	}while(status);
}
Beispiel #9
0
static void dfmenu(RDArsrc *r)
{
	ExecuteProgram("dfmenu",NULL);
}
Beispiel #10
0
static void dfscn(RDArsrc *r)
{
	ExecuteProgram("dfscn",NULL);
}