![]() ![]() I quickly wrote some code that demonstrated sending the message. I wasn't sure how to deal with all the possible errors during burning - there were so many! I eventually got a vb.net program that could burn MP3s to CD. ![]() I used it to find out things that IMAPI couldn't tell you - like the exact media in the drive, and whether the drive was ready. I'd learnt about DeviceIOControl, and how it can be used to send messages straight to a device. I was working at trying to make a CD Burner, using COM Interop to talk to IMAPI on XP (before IMAPI2). There weren't any useful examples that I could find. But anyway the thread went along the lines of:Ģ) Someone suggested: Well use DeviceIOControl to send IOCTL_DISK_GET_STORAGEID to the drive.Īt the time I'd just been playing with DeviceIOControl, and had spent ages working out how to use it from. Distribute your program on an SD Card, have it check the serial, and have it fail if the number doesn't match a hard-coded version. People want to do this as the number is factory stamped and unchangeable, so it could be used to protect programs from being copied. I got an email about a post from ages ago on the msdn forums about reading the serial number from an SD Card. manufactureDate: string: Manufacture dateĭecodeCID(cid: string): CardIdentificationĭecodes a CID and returns all the information.(Quick link to an executable, this might read the serial number on Windows XP/Vista/32/64 when you are not using a USB card reader (so when you have the card in a slot on the side of a laptop it should work - though it depends on the driver!)).productRevision: string: Product revision.oemId: string: OEM / Application ID assigned by SD-3C, LLC.If the name is unknown then value will be "Unknown" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |