阅读:1392回复:0
牛人们,如何在驱动级取CPU ID?
如何在驱动级取CPU ID?
... NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN ULONG SystemInformationClass,IN PVOID SystemInformation,IN ULONG SystemInformationLength,OUT PULONG ReturnLength); VOID GetHardwareInfo() { ULONG SystemInformationClass=0; PVOID SystemInformation=0; ULONG SystemInformationLength=0; PULONG ReturnLength=0; NTSTATUS rc; rc=NtQuerySystemInformation(SystemInformationClass,SystemInformation,SystemInformationLength,ReturnLength); // ...... // DbgPrint("cpu id %s",cpuid) //...... return; } 上面的代码编译通过。 但SystemInformationClass,SystemInformation 等具体怎么写? 谢谢 谢谢 |
|