Open forderud opened 1 year ago
Even after renaming all the ones for which the errors were reported, there's this error:
Severity Code Description Project File Line Suppression State Error 1284 Class "Sample" is reserved for use by Microsoft. wdftoastmon C:\Users\nBase2\Git\repos\Windows-driver-samples\general\toaster\toastDrv\kmdf\toastmon\wdftoastmon.inx 22
And if I change "Sample" to "Sample1", it reports this error:
Severity Code Description Project File Line Suppression State Error 1280 Class name and ClassGuid mismatch, expecting Class "Sample" for ClassGuid "{78A1C341-4539-11d3-B88D-00C04FAD5171}". wdftoastmon C:\Users\nBase2\Git\repos\Windows-driver-samples\general\toaster\toastDrv\kmdf\toastmon\wdftoastmon.inx 22
Basically, we need more details to overcome this error.
And if I change "Sample" to "Sample1", it reports this error:
Severity Code Description Project File Line Suppression State Error 1280 Class name and ClassGuid mismatch, expecting Class "Sample" for ClassGuid "{78A1C341-4539-11d3-B88D-00C04FAD5171}". wdftoastmon C:\Users\nBase2\Git\repos\Windows-driver-samples\general\toaster\toastDrv\kmdf\toastmon\wdftoastmon.inx 22
Basically, we need more details to overcome this error.
Sample
is a well-known class associated with ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
. You'll therefore probably need to also change ClassGuid
if changing Class
. This is documented on https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/inf-validation-errors-and-warnings
I'm experiencing the following errors when attempting to build the general\toaster\toastDrv KMDF projects with Visual Studio 2022:
It would be great if your could fix these errors so that the samples build out-of-the-box. Alternatively, clearly document how to rename the services. The reason for asking is that it's unclear to me if it's sufficient to change the service name, or if the SYS and INX/INF files also need to be renamed.