home *** CD-ROM | disk | FTP | other *** search
- /* This wrapper prog starts mkisofs to create an ISO-Image
- */
- /*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; see the file COPYING. If not, write to
- * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- */
- #define INCL_DOS
- #define INCL_WIN
-
- #include <os2.h>
- #include <time.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <io.h>
-
- void main(int argc, char * argv[])
- {
- int i;
- char cmdLine[CCHMAXPATH*4]={0};
- HWND hwndNotify;
- char * chrPtr;
- char exeName[CCHMAXPATH];//="g:\\projects_working\\audiocpy\\cdrecord.exe";
- char chrError[CCHMAXPATH];
- RESULTCODES resultCodes;
- ULONG rc,ulAction;
- PVOID pvSharedMem;
- char *text;
-
- hwndNotify=atol(argv[1]);
-
-
- if(!DosGetNamedSharedMem(&pvSharedMem,"\\SHAREMEM\\MKISOFSCMDLINE",PAG_READ|PAG_WRITE))
- {
- text=(char*)pvSharedMem;
- /* Build mkisofs cmd-line */
- /* Second zero to mark end */
-
- //*(strrchr(text,0)+1)=0;
- *(strchr(text,0)+1)=0;
-
- *strchr(text,' ')=0;
-
- /* start mkisofs */
- DosExecPgm(chrError,sizeof(chrError),EXEC_SYNC,text,0,&resultCodes,text);
-
- /* printf("%s\n",pvSharedMem);
- printf("%s",text2);
- DosSleep(10000);*/
- DosFreeMem(pvSharedMem);
- }
- /* Send msg. to the notification window */
- WinPostMsg(hwndNotify,WM_APPTERMINATENOTIFY,MPFROMLONG(0),MPFROMLONG(resultCodes.codeResult));
- }
-
-
-
-
-
-
-
-
-
-