| |||||||
| Commercial message | |
| | |
|
![]() |
| | Thread Tools |
| | #1 (permalink) |
| New on Forum Join Date: Nov 2005
Posts: 4
| Multisession DVD Problem Hi, I am tring to add files to an existing DVD Image, of some reason files being added to the IsoTrack are not Showed by the explorer although when calling NeroImportDataTrack they can clearly be seen and nero reporst success while burning them, What may cause such a problem? Following is the code I use: int _tmain(int argc, _TCHAR* argv[]) { NERO_SETTINGS NeroSettings; NERO_PROGRESS NeroProgress; NERO_ISO_ITEM *pNewItem; NERO_SCSI_DEVICE_INFO* nsdiDevice; NERO_CD_INFO *nci; NERO_IMPORT_DATA_TRACK_RESULT nidtrResult; NERO_IMPORT_DATA_TRACK_INFO pInfo; NERO_ISO_ITEM *niiTemp; NERO_DEVICEHANDLE ndhDeviceHandle; NERO_SCSI_DEVICE_INFOS *pNeroDeviceInfos; NERO_WRITE_CD writeCD; NEROAPI_INIT_ERROR err; void *pCDStamp=NULL; ZeroMemory(&NeroSettings, sizeof(NeroSettings)); ZeroMemory(&NeroProgress, sizeof(NeroProgress)); if (!NeroAPIGlueConnect (NULL)) return -1; char pNeroFile[128]; char pAhead[128]; char pNeroBurningRom[128]; char pNero_txt[128]; WORD ver1, ver2, ver3, ver4; NeroGetAPIVersionEx(&ver1,&ver2,&ver3,&ver4,NULL); strcpy(pNeroFile, "NeroFiles"); strcpy(pAhead, "ahead"); strcpy(pNeroBurningRom, "Nero - Burning Rom"); strcpy(pNero_txt, "Nero.txt"); // use the US-English error message file NeroSettings.nstNeroFilesPath = pNeroFile; NeroSettings.nstVendor = pAhead; NeroSettings.nstIdle.ncCallbackFunction = IdleCallback; NeroSettings.nstIdle.ncUserData = &NeroSettings; NeroSettings.nstSoftware = pNeroBurningRom; NeroSettings.nstUserDialog.ncCallbackFunction = UserDialog; NeroSettings.nstUserDialog.ncUserData = &NeroSettings; NeroSettings.nstLanguageFile = pNero_txt; // NeroProgress will be used during the burn process NeroProgress.npAbortedCallback = AbortedCallback; NeroProgress.npAddLogLineCallback = AddLogLine; NeroProgress.npDisableAbortCallback = NULL; NeroProgress.npProgressCallback = ProgressCallback; NeroProgress.npSetPhaseCallback = SetPhaseCallback; NeroProgress.npUserData = 0; NeroProgress.npSetMajorPhaseCallback = NULL; NeroProgress.npSubTaskProgressCallback = NULL; err = NeroInit (&NeroSettings, NULL); writeCD.nwcdpCDStamp=NULL; writeCD.nwcdArtist=NULL; writeCD.nwcdTitle=NULL; writeCD.nwcdCDExtra=FALSE; // we have no Audio tracks writeCD.nwcdNumTracks=0; // we want to write to a CD writeCD.nwcdMediaType = MEDIA_DVD_M_RW; pNeroDeviceInfos = NeroGetAvailableDrivesEx(MEDIA_DVD_M_RW, NULL); nsdiDevice = pNeroDeviceInfos->nsdisDevInfos + 1; ndhDeviceHandle = NeroOpenDevice(nsdiDevice); niiTemp = 0; nci = NeroGetCDInfo(ndhDeviceHandle, NGCDI_READ_CD_TEXT); if(nci) { niiTemp = NeroImportDataTrack(ndhDeviceHandle, nci->ncdiNumTracks-1, &pCDStamp,&pInfo, NIITEF_IMPORT_ISO_ONLY, &nidtrResult, NULL); writeCD.nwcdpCDStamp = pCDStamp; } pNewItem = NeroCreateIsoItem(); char* pEndPtr = argv[1]; char* pJustName = pEndPtr; while(0 != pEndPtr && 0 != *pEndPtr) { pJustName = ++pEndPtr; pEndPtr = strstr(pEndPtr, "\\"); } strcpy(pNewItem->fileName, pJustName); pNewItem->longSourceFilePath = argv[1]; pNewItem->isDirectory=FALSE; pNewItem->isReference=TRUE; pNewItem->nextItem = niiTemp; if(0 != ndhDeviceHandle) { writeCD.nwcdIsoTrack = NeroCreateIsoTrackEx(pNewItem, "LABEL", NCITEF_CREATE_ISO_FS | NCITEF_USE_JOLIET); int iRes = NeroBurn(ndhDeviceHandle, NERO_ISO_AUDIO_MEDIA, &writeCD, NBF_WRITE | NBF_CLOSE_SESSION | NBF_DISABLE_EJECT, 0, &NeroProgress); NeroFreeIsoTrack(writeCD.nwcdIsoTrack); NeroCloseDevice(ndhDeviceHandle); char* Log = NeroGetErrorLog(); NeroFreeMem(Log); } NeroFreeIsoItemTree(pNewItem); return 0; } Thanks in Advance, Nadav. |
| | |
| | #2 (permalink) |
| New on Forum Join Date: Aug 2005 Location: Netherlands
Posts: 13
| Re: Multisession DVD Problem Do you see the files when you eject and reload the medium ? Perhaps using FSCTL_IOCTL_LOCK and FSCTL_IOCTL_DISMOUNT will solve the problem. It will force explorer to reread the medium. Jos |
| | |
| |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem in Multisession DVD | paryab | Nero SDK Discussion Forum | 1 | 05-01-2006 13:49 |
| Problem with multisession DVD! please help!!! | rolz | Burning Software | 2 | 04-11-2005 01:19 |
| DVD-R and Multisession burning problem | danieliew | NEC / Optiarc Burner | 5 | 15-07-2004 03:03 |
| Multisession DVD problem | sparx2k | Nero & InCD | 11 | 18-01-2004 12:29 |
| DVD+RW Multisession Problem | TotallyClueless | Newbie Forum | 0 | 17-06-2003 18:29 |