Adaptation/GUID-7DDF052C-2520-428D-932D-BDB476344575.dita
changeset 15 307f4279f433
equal deleted inserted replaced
14:578be2adaf3e 15:307f4279f433
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <concept id="GUID-7DDF052C-2520-428D-932D-BDB476344575" xml:lang="en"><title>Generated
       
    13 Events</title><shortdesc>This document describes how kernel events are used in communication
       
    14 with the kernel.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    15 <section id="GUID-E539DF2B-239A-4B8F-B053-EE2041EA439E">     <p>Drives
       
    16 can communicate with the Window Server, and through that to user programs,
       
    17 using events. </p> <p> <xref href="GUID-C6946ECB-775F-3EC2-A56F-78F25B9FBE3D.dita#GUID-C6946ECB-775F-3EC2-A56F-78F25B9FBE3D/GUID-81C82FED-0E26-351A-901E-806843C808FE"><apiname> Kern::AddEvent()</apiname></xref> adds an event
       
    18 to the kernel event queue. This is used typically in drivers such as the keyboard
       
    19 driver, which raises key events. </p> <codeblock id="GUID-EC49015D-A9BF-505B-95A3-A2630B36602B" xml:space="preserve">TRawEvent event;
       
    20 event.Set(TRawEvent::EKeyDown, EStdKeyBackspace);
       
    21 Kern::AddEvent(event);</codeblock> <p>The kernel event queue maintains a circular
       
    22 buffer of <xref href="GUID-668CEA36-3933-3BBE-A980-CAB62617B4FD.dita"><apiname>TRawEvent</apiname></xref> objects allocated at system initialization.
       
    23 The Windows Server calls <xref href="GUID-9EF04FB9-B36F-3A6F-AF3F-F2238BD181E9.dita#GUID-9EF04FB9-B36F-3A6F-AF3F-F2238BD181E9/GUID-2B008E10-844A-3081-A4CB-B64583E9DBFC"><apiname>UserSvr::CaptureEventHook()</apiname></xref> to
       
    24 register itself to receive such events. The Kernel does not permit any process
       
    25 other than the Windows Server to register to receive events. </p>        
       
    26   </section>
       
    27 </conbody></concept>