Nota
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
Overview
Driver entry point functions should be declared with a function role type.
For more information, see C28158 warning - Windows Drivers
Recommendation
Make sure the role type of the function being used matches the expected role type.
Example
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
//Macros to enable or disable a code section that may or may not conflict with this test.
#define SET_DISPATCH 1
//Template function. Not used for this test.
void top_level_call(){
}
Additional Details
This query can be found in the Microsoft GitHub CodeQL repository. See the CodeQL and the Static Tools Logo Test page for details on how Windows Driver developers can download and run CodeQL.