Sh4DoVV Posted December 29, 2016 Posted December 29, 2016 Hi friends how to use SCSI_PASS_THROUGH_DIRECT structure in Masm ? i want read disk structure with this structure i have vb6 source , but i can not convert it to masm
evlncrn8 Posted December 29, 2016 Posted December 29, 2016 heres the ones i made in coding the parts in protection id SCSI_PASS_THROUGH_DIRECT struct DataLength USHORT ? ScsiStatus UCHAR ? PathId UCHAR ? TargetId UCHAR ? Lun UCHAR ? CdbLength UCHAR ? SenseInfoLength UCHAR ? DataIn ULONG ? ; defined as UCHAR - seems wrong.. make it ULONG - all fine... DataTransferLength ULONG ? TimeOutValue ULONG ? DataBuffer PVOID ? SenseInfoOffset ULONG ? Cdb UCHAR 16 dup(?) SCSI_PASS_THROUGH_DIRECT ENDS ;---------------------------------------------------------------------------- SCSI_PASS_THROUGH_DIRECT_PID struct DataLength USHORT ? ; word ScsiStatus UCHAR ? ; byte PathId UCHAR ? ; byte TargetId UCHAR ? ; byte Lun UCHAR ? ; byte CdbLength UCHAR ? ; byte SenseInfoLength UCHAR ? ; byte DataIn UCHAR ? ; byte ; defined as UCHAR - seems wrong.. make it ULONG - all fine... align 4 ; alignment padding DataTransferLength ULONG ? ; dword ifdef AMD64 align 8 endif TimeOutValue ULONG ? ; dword ifdef AMD64 align 8 endif DataBuffer PVOID ? ; dword / qword (qword for x64) SenseInfoOffset ULONG ? ; dword Cdb UCHAR 16 dup(?) ifdef AMD64 UCHAR 4 dup(?) align 8 endif SCSI_PASS_THROUGH_DIRECT_PID ENDS SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER_PID struct sptd_block SCSI_PASS_THROUGH_DIRECT_PID <?> Filler ULONG ? SenseBuf BYTE 96 dup(?) ifdef AMD64 align 8 endif DataBuf BYTE 192 dup(?) SCSI_PASS_THROUGH_DIRECT_WITH_BUFFER_PID ENDS
ragdog Posted December 29, 2016 Posted December 29, 2016 (edited) Post to late evlncrn8 was faster DELETE IT PLEASE Edited December 29, 2016 by ragdog
Sh4DoVV Posted December 29, 2016 Author Posted December 29, 2016 HI friend thanks , do you have an example for using it in masm ?
ragdog Posted December 29, 2016 Posted December 29, 2016 (edited) I hope it helpshttp://www.masmforum.com/archive2012/2788_read_cd_sector.zip http://www.masmforum.com/archive2012/2794_read_cd_ASPI.zip http://www.masmforum.com/archive2012/2805_Read_CD_tekst.zip http://www.masmforum.com/archive2012/7325_Read_CDTEXT.zip http://www.masmforum.com/archive2012/2391_cdr.zip But is not reversing themes ,and think is a wrong board regards, Edited December 29, 2016 by ragdog
evlncrn8 Posted December 29, 2016 Posted December 29, 2016 1 hour ago, Sh4DoVV said: HI friend thanks , do you have an example for using it in masm ? to do what exactly ? spti layer covers a multitude of things.. if you just want to read a cd -> iso or something just use the createfile->readfile method, its much easier, and for the aspi stuff, unless you plan to cater for win 95 or so, forget it, its not worth the trouble
Sh4DoVV Posted December 30, 2016 Author Posted December 30, 2016 Hi ragdog Thank for your help very good , worked correctly
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now