Before obtaining the IDE and Scsi hard drives, use DeviceIoControl way to get the hard disk serial number, but m. 2 hard won't get it, please give some advice on how to obtain m. 2 hard disk serial number, don't embarrassed
CodePudding user response:
Advise the landlord don't spend and waste your limited life infinite encryption to decrypt dead loop!
Search "WMI hard disk serial number"
CodePudding user response:
@ 4 teacher zhao to extract the serial number, thanks
CodePudding user response:
How to read ah, boss, can share
CodePudding user response:
The
reference 3 floor qq_41506221 response: how to read ah, eldest brother, can you share with WMI hard disk serial number Actually whatever interface, basic simulation into ATA interface, so only serial number, because it is ATA standard CodePudding user response:
reference 4 floor liups response: Quote: reference qq_41506221 reply: 3/f How to read ah, eldest brother, can you share with WMI hard disk serial number Actually whatever interface, basic simulation into ATA interface, so only serial number, because it is ATA standard The serial number of the current SSD read less than ah, good CodePudding user response:
Had a lenovo laptop, added a m. 2, 2242, when the test is to pass the WMI is read, on the other hand, had a kind of can't read, in fact, because of space in front of the serial number, some programs did not consider this kind of situation, so the result is empty (actually I met ATA hard disk), the last one is that there is no serial number, this kind of situation is there, CodePudding user response:
Questions about the space I have lost count of the original, the hard drive there are other related: https://blog.csdn.net/qq61394323/article/details/25052711 CodePudding user response:
My HP SSD ex900 solid hard disk is nvme interface, in a pci card slot, how to read serial number? I use crystaldiskinfo tools can be read CodePudding user response:
refer to the eighth floor weixin_39282170 response: my HP SSD ex900 solid hard disk is nvme interface, in a pci card slot, in what way can read serial number? I use crystaldiskinfo tools can be read System is win10, currently in what way can't read serial number CodePudding user response:
references 9 f weixin_39282170 response: Quote: refer to the eighth floor weixin_39282170 response: my HP SSD ex900 solid hard disk is nvme interface, in a pci card slot, in what way can read serial number? I use crystaldiskinfo tools can be read System is win10, at present in what way can't read serial number If you advise directly using the way of wmi wmi tools manual check first, to see where the problem is, tool can reference here: https://blog.csdn.net/cosmoslife/article/details/8226500 CodePudding user response:
references 9 f weixin_39282170 response: Quote: refer to the eighth floor weixin_39282170 response: my HP SSD ex900 solid hard disk is nvme interface, in a pci card slot, in what way can read serial number? I use crystaldiskinfo tools can be read System is win10, at present in what way can't read serial number You press this to try first: https://blog.csdn.net/liups/article/details/90261294 CodePudding user response:
11 references liups response: Quote: references 9 f weixin_39282170 response: Quote: refer to the eighth floor weixin_39282170 response: my HP SSD ex900 solid hard disk is nvme interface, in a pci card slot, in what way can read serial number? I use crystaldiskinfo tools can be read System is win10, at present in what way can't read serial number You try it at this first: https://blog.csdn.net/liups/article/details/90261294 I tried this, also can't read CodePudding user response:
HPhysicalDriveIOCTL=CreateFile (" \ \ \ \. \ \ PhysicalDrive % d ", 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); STORAGE_PROPERTY_QUERY query; DWORD cbBytesReturned=0; Char local_buffer [10000]. Memset ((void *) & amp; Query, 0, sizeof (query)); Query. PropertyId=StorageDeviceProperty; Query. QueryType=PropertyStandardQuery; Memset (local_buffer, 0, sizeof (local_buffer)); If (DeviceIoControl (hPhysicalDriveIOCTL IOCTL_STORAGE_QUERY_PROPERTY, & Query, Sizeof (query), & Local_buffer [0], Sizeof (local_buffer), & CbBytesReturned, NULL)) This also not line? CodePudding user response:
reference 13 floor was raining - xiao response: HPhysicalDriveIOCTL=CreateFile (" \ \ \ \. \ \ PhysicalDrive % d ", 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); STORAGE_PROPERTY_QUERY query; DWORD cbBytesReturned=0; Char local_buffer [10000]. Memset ((void *) & amp; Query, 0, sizeof (query)); Query. PropertyId=StorageDeviceProperty; Query. QueryType=PropertyStandardQuery; Memset (local_buffer, 0, sizeof (local_buffer)); If (DeviceIoControl (hPhysicalDriveIOCTL IOCTL_STORAGE_QUERY_PROPERTY, & Query, Sizeof (query), & Local_buffer [0], Sizeof (local_buffer), & CbBytesReturned, NULL)) This also not line? Boss, can help to C # or vb, C no CodePudding user response:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull