Re: [Cdrecord-support] cdrtools-2.01a24 ready
>From [EMAIL PROTECTED] Wed Jan 7 23:39:56 2004 >I'm using NT4preSP7. Adaptec Aspi 4.60 is running. Normally I use ^ Is this the string that is retuned in osver.szCSDVersion? If yes, then there is a big chance that you either got a wrong result from the new function w2kstyle_create() as a result from an illegal memory access or the function w2kstyle_create() just does not correctly know from which NT-4 version the additional flags from NT-5.x need to be used. Now, I need testers! And for the NT4preSP7 case, I need a special test: 1) please insert a test printing line: LOCAL BOOL w2kstyle_create(void) { OSVERSIONINFO osver; /* return FALSE; */ memset(&osver, 0, sizeof (osver)); osver.dwOSVersionInfoSize = sizeof (osver); GetVersionEx(&osver); if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { /* * Win2000 is NT-5.0, Win-XP is NT-5.1 */ if (osver.dwMajorVersion > 4) return (TRUE); if (osver.dwMajorVersion == 4) {/* NT-4.x */ char*vers = osver.szCSDVersion; error("osver.szCSDVersion: '%s'\n", vers); sleep(10); if (strlen(vers) == 0) return (FALSE); Because of the sleep(10) you should be able to see the text even if there later is a blue screen. 2) if you still get a blue screen, add a return (FALSE); after the 'error(...' line. 3) If this does not help, try a return (TRUE); Other changes: cdrecord dev=ASPI -scanbus will work. save the mail and run patch < saved-mail /*--*/ Here is a patch that needs to be applied to cdrtools-2.01a24: *** ../cdrecord/cdrtools-2.01/libscg/scsi-wnt.c Mi Jan 7 00:20:32 2004 --- /tmp/scsi-wnt.c So Jan 11 14:39:46 2004 *** *** 65,72 *Choose your name instead of "schily" and make clear that the version *string is related to a modified source. */ ! LOCAL char_scg_trans_version[] = "scsi-wnt.c-1.35"; /* The version for this transport*/ ! LOCAL char_scg_itrans_version[] = "SPTI-scsi-wnt.c-1.35"; /* The version for SPTI */ /* * Local defines and constants --- 65,72 *Choose your name instead of "schily" and make clear that the version *string is related to a modified source. */ ! LOCAL char_scg_trans_version[] = "scsi-wnt.c-1.38"; /* The version for this transport*/ ! LOCAL char_scg_itrans_version[] = "SPTI-scsi-wnt.c-1.38"; /* The version for SPTI */ /* * Local defines and constants *** *** 110,115 --- 110,116 LOCAL voidcopy_sensedata __PR((SRB_ExecSCSICmd *cp, struct scg_cmd *sp)); LOCAL voidset_error __PR((SRB_ExecSCSICmd *cp, struct scg_cmd *sp)); LOCAL BOOLopen_driver __PR((SCSI *scgp)); + LOCAL BOOLload_aspi __PR((SCSI *scgp)); LOCAL BOOLclose_driver__PR((void)); LOCAL int ha_inquiry __PR((SCSI *scgp, int id, SRB_HAInquiry *ip)); #ifdef__USED__ *** *** 286,305 osver.dwOSVersionInfoSize = sizeof (osver); GetVersionEx(&osver); if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { ! if (osver.dwMajorVersion > 4) /* W2k, XP + */ return (TRUE); ! if (osver.dwMajorVersion == 4) { ! if (strlen(osver.szCSDVersion)) { /*if Servicepack installed */ ! int i = 0; ! while (osver.szCSDVersion[i] != '\0' && ! !isdigit(osver.szCSDVersion[i])) ! i++; ! if (isdigit(osver.szCSDVersion[i]) && ! (atoi(&osver.szCSDVersion[i]) >= 4 || isdigit(osver.szCSDVersion[i+1]))) /* Fom Service Pack 4 */ ! return (TRUE); /* same as for W2K */ ! } } } return (FALSE); --- 287,315 osver.dwOSVersionInfoSize = sizeof (osver); GetVersionEx(&osver); if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { ! /* !* Win2000 is NT-5.0, Win-XP is NT-5.1 !*/ ! if (osver.dwMajorVersion > 4) return (TRUE); ! if (osver.dwMajorVersion == 4) {/* NT-4.x */ ! char*vers = osver.szCSDVersion; ! if (strlen(vers) == 0) ! return (FALSE); ! ! /* !* Servicepack is installed, skip over non-digit part !
Re: [Cdrecord-support] cdrtools-2.01a24 ready
>From [EMAIL PROTECTED] Wed Jan 7 23:39:56 2004 >I'm using NT4preSP7. Adaptec Aspi 4.60 is running. Normally I use ^ Is this the string that is retuned in osver.szCSDVersion? If yes, then there is a big chance that you either got a wrong result from the new function w2kstyle_create() as a result from an illegal memory access or the function w2kstyle_create() just does not correctly know from which NT-4 version the additional flags from NT-5.x need to be used. Now, I need testers! And for the NT4preSP7 case, I need a special test: 1) please insert a test printing line: LOCAL BOOL w2kstyle_create(void) { OSVERSIONINFO osver; /* return FALSE; */ memset(&osver, 0, sizeof (osver)); osver.dwOSVersionInfoSize = sizeof (osver); GetVersionEx(&osver); if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { /* * Win2000 is NT-5.0, Win-XP is NT-5.1 */ if (osver.dwMajorVersion > 4) return (TRUE); if (osver.dwMajorVersion == 4) {/* NT-4.x */ char*vers = osver.szCSDVersion; error("osver.szCSDVersion: '%s'\n", vers); sleep(10); if (strlen(vers) == 0) return (FALSE); Because of the sleep(10) you should be able to see the text even if there later is a blue screen. 2) if you still get a blue screen, add a return (FALSE); after the 'error(...' line. 3) If this does not help, try a return (TRUE); Other changes: cdrecord dev=ASPI -scanbus will work. save the mail and run patch < saved-mail /*--*/ Here is a patch that needs to be applied to cdrtools-2.01a24: *** ../cdrecord/cdrtools-2.01/libscg/scsi-wnt.c Mi Jan 7 00:20:32 2004 --- /tmp/scsi-wnt.c So Jan 11 14:39:46 2004 *** *** 65,72 *Choose your name instead of "schily" and make clear that the version *string is related to a modified source. */ ! LOCAL char_scg_trans_version[] = "scsi-wnt.c-1.35"; /* The version for this transport*/ ! LOCAL char_scg_itrans_version[] = "SPTI-scsi-wnt.c-1.35"; /* The version for SPTI */ /* * Local defines and constants --- 65,72 *Choose your name instead of "schily" and make clear that the version *string is related to a modified source. */ ! LOCAL char_scg_trans_version[] = "scsi-wnt.c-1.38"; /* The version for this transport*/ ! LOCAL char_scg_itrans_version[] = "SPTI-scsi-wnt.c-1.38"; /* The version for SPTI */ /* * Local defines and constants *** *** 110,115 --- 110,116 LOCAL voidcopy_sensedata __PR((SRB_ExecSCSICmd *cp, struct scg_cmd *sp)); LOCAL voidset_error __PR((SRB_ExecSCSICmd *cp, struct scg_cmd *sp)); LOCAL BOOLopen_driver __PR((SCSI *scgp)); + LOCAL BOOLload_aspi __PR((SCSI *scgp)); LOCAL BOOLclose_driver__PR((void)); LOCAL int ha_inquiry __PR((SCSI *scgp, int id, SRB_HAInquiry *ip)); #ifdef__USED__ *** *** 286,305 osver.dwOSVersionInfoSize = sizeof (osver); GetVersionEx(&osver); if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { ! if (osver.dwMajorVersion > 4) /* W2k, XP + */ return (TRUE); ! if (osver.dwMajorVersion == 4) { ! if (strlen(osver.szCSDVersion)) { /*if Servicepack installed */ ! int i = 0; ! while (osver.szCSDVersion[i] != '\0' && ! !isdigit(osver.szCSDVersion[i])) ! i++; ! if (isdigit(osver.szCSDVersion[i]) && ! (atoi(&osver.szCSDVersion[i]) >= 4 || isdigit(osver.szCSDVersion[i+1]))) /* Fom Service Pack 4 */ ! return (TRUE); /* same as for W2K */ ! } } } return (FALSE); --- 287,315 osver.dwOSVersionInfoSize = sizeof (osver); GetVersionEx(&osver); if (osver.dwPlatformId == VER_PLATFORM_WIN32_NT) { ! /* !* Win2000 is NT-5.0, Win-XP is NT-5.1 !*/ ! if (osver.dwMajorVersion > 4) return (TRUE); ! if (osver.dwMajorVersion == 4) {/* NT-4.x */ ! char*vers = osver.szCSDVersion; ! if (strlen(vers) == 0) ! return (FALSE); ! ! /* !* Servicepack is installed, skip over non-digit part !
Re: [Cdrecord-support] cdrtools-2.01a24 ready
Hi, > NEW features of cdrtools-2.01a24: > - First attempt to support the SPTI Ioctl interface on Windows NT. > see also http://www.ste-home.de/cdrtools-spti/ > Thanks to Richard Stemmer, Jay A. Key and thomas podkanski > This allows to use cdrtools on NT without the need to install ASPI in > case you are administrator when yu run a program. I'm using NT4preSP7. Adaptec Aspi 4.60 is running. Normally I use Adaptec ASPI layer without administator rights to burn a CD. > Please note that the use of SPTI is default. ASPI was default for several years. You changed this behavior. > If you like to force using ASPI, use dev=ASPI:b,t,l or dev=ASPI > (in the -scanbus case). Now I'm using administrator rights and cygwin1.dll 1.5.5-cr-0x9b. D:\>cdrecord -v dev=ASPI:1,1,0 blank=fast Ok, works. D:\>cdrecord dev=ASPI -scanbus Cdrecord-Clone 2.01a24 (i586-pc-cygwin) Copyright (C) 1995-2004 Jörg Schilling scsidev: 'ASPI' devname: 'ASPI' scsibus: -2 target: -2 lun: -2 cdrecord: Invalid argument. Devname 'ASPI' unknown.. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. cdrecord: For possible transport specifiers try 'cdrecord dev=help'. D:\>cdrecord -scanbus Blue screen of death; well, broken OS. I got the same result on three different computers with NT4. W2k with SPTI works without problems (cdrecord -scanbus and cd burning). Udo
Re: [Cdrecord-support] cdrtools-2.01a24 ready
Hi, > NEW features of cdrtools-2.01a24: > - First attempt to support the SPTI Ioctl interface on Windows NT. > see also http://www.ste-home.de/cdrtools-spti/ > Thanks to Richard Stemmer, Jay A. Key and thomas podkanski > This allows to use cdrtools on NT without the need to install ASPI in > case you are administrator when yu run a program. I'm using NT4preSP7. Adaptec Aspi 4.60 is running. Normally I use Adaptec ASPI layer without administator rights to burn a CD. > Please note that the use of SPTI is default. ASPI was default for several years. You changed this behavior. > If you like to force using ASPI, use dev=ASPI:b,t,l or dev=ASPI > (in the -scanbus case). Now I'm using administrator rights and cygwin1.dll 1.5.5-cr-0x9b. D:\>cdrecord -v dev=ASPI:1,1,0 blank=fast Ok, works. D:\>cdrecord dev=ASPI -scanbus Cdrecord-Clone 2.01a24 (i586-pc-cygwin) Copyright (C) 1995-2004 Jörg Schilling scsidev: 'ASPI' devname: 'ASPI' scsibus: -2 target: -2 lun: -2 cdrecord: Invalid argument. Devname 'ASPI' unknown.. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. cdrecord: For possible transport specifiers try 'cdrecord dev=help'. D:\>cdrecord -scanbus Blue screen of death; well, broken OS. I got the same result on three different computers with NT4. W2k with SPTI works without problems (cdrecord -scanbus and cd burning). Udo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]