Sample Code
Windows Driver Samples/ Eventdrv/ C++/ Eventdrv/ evntdrv.xml/
<?xml version='1.0' encoding='utf-8' standalone='yes'?> <instrumentationManifest xmlns="http://schemas.microsoft.com/win/2004/08/events" xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/win/2004/08/events eventman.xsd" > <instrumentation> <events> <provider guid="{b5a0bda9-50fe-4d0e-a83d-bae3f58c94d6}" messageFileName="%SystemDrive%\ETWDriverSample\Eventdrv.sys" name="Sample Driver" resourceFileName="%SystemDrive%\ETWDriverSample\Eventdrv.sys" symbol="DriverControlGuid" > <channels> <importChannel chid="SYSTEM" name="System" /> </channels> <templates> <template tid="tid_load_template"> <data inType="win:UInt16" name="DeviceNameLength" outType="xs:unsignedShort" /> <data inType="win:UnicodeString" name="name" outType="xs:string" /> <data inType="win:UInt32" name="Status" outType="xs:unsignedInt" /> </template> <template tid="tid_unload_template"> <data inType="win:Pointer" name="DeviceObjPtr" outType="win:HexInt64" /> </template> </templates> <events> <event channel="SYSTEM" level="win:Informational" message="$(string.StartEvent.EventMessage)" opcode="win:Start" symbol="StartEvent" template="tid_load_template" value="1" /> <event channel="SYSTEM" level="win:Informational" message="$(string.SampleEventA.EventMessage)" opcode="win:Info" symbol="SampleEventA" value="2" /> <event channel="SYSTEM" level="win:Informational" message="$(string.UnloadEvent.EventMessage)" opcode="win:Stop" symbol="UnloadEvent" template="tid_unload_template" value="3" /> </events> </provider> </events> </instrumentation> <localization xmlns="http://schemas.microsoft.com/win/2004/08/events"> <resources culture="en-US"> <stringTable> <string id="StartEvent.EventMessage" value="Driver Loaded" /> <string id="SampleEventA.EventMessage" value="IRP A Occurred" /> <string id="UnloadEvent.EventMessage" value="Driver Unloaded" /> </stringTable> </resources> </localization> </instrumentationManifest>
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials