Visual Studio2019 Code 片段快捷键配置路径E:\Visual Studio2019\path\Common7\IDE\VC\Snippets\2052\Visual C后缀名字.snippet快捷键de驱动代码DriverEntry?xml version1.0 encodingutf-8? CodeSnippets xmlnshttp://schemas.microsoft.com/VisualStudio/2005/CodeSnippet CodeSnippet Format1.0.0 Header Titlede/Title Shortcutde/Shortcut DescriptionDriverEntry/Description AuthorMicrosoft Corporation/Author SnippetTypes SnippetTypeExpansion/SnippetType SnippetTypeSurroundsWith/SnippetType /SnippetTypes /Header Snippet Declarations Literal IDexpression/ID ToolTip要计算的表达式/ToolTip Defaulttrue/Default /Literal /Declarations Code Languagecpp![CDATA[#includeNtifs.h VOID DriverUnload(PDRIVER_OBJECT DriverObject) { if (DriverObject ! NULL) { DbgPrint(Driver Unload); } return; } NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) { DriverObject-DriverUnload DriverUnload; return STATUS_SUCCESS; } ]] /Code /Snippet /CodeSnippet /CodeSnippets