Adaptation/GUID-BE73CFE6-D48D-5B92-AF49-E2D967ADF0EC.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 task
       
    11   PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
       
    12 <task xml:lang="en" id="GUID-BE73CFE6-D48D-5B92-AF49-E2D967ADF0EC"><title>Close and Unload the Driver </title><shortdesc>A short tutorial describing how to close and unload the shared chunk, close the USB channel and unload the USB Logical Device Driver (LDD). </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody><steps id="GUID-1F63BD2D-A29C-5AC1-9013-07D16187F577"><step id="GUID-764B04E1-B796-570F-A99E-AD0463506EA7"><cmd>Close the handle to the shared chunk using <xref href="GUID-326A2F4D-0E99-31C0-A35D-E8BF45913F07.dita#GUID-326A2F4D-0E99-31C0-A35D-E8BF45913F07/GUID-76D5B03B-4DF5-3CD7-80E9-8C113B87A613"><apiname>RChunk::Close()</apiname></xref>. </cmd> <stepxmp><codeblock id="GUID-D52CC11A-493B-51AB-B7C2-AFA0C86F9AC0" xml:space="preserve">// Close chunk handle
       
    13 gChunk.Close();</codeblock> </stepxmp> </step> <step id="GUID-34E995EC-C70B-5835-8CF6-FB382B6B61E5"><cmd/><info>Close the handle to the USB channel using <xref href="GUID-4D1AE286-41EE-3361-948A-3E8634D81DBA.dita#GUID-4D1AE286-41EE-3361-948A-3E8634D81DBA/GUID-1EB060E0-FFCF-3C37-AEE3-E33AA7ED37B4"><apiname>RDevUsbcScClient::Close()</apiname></xref>. </info> <stepxmp><codeblock id="GUID-72F64F85-F315-580E-B1E2-25B5418D10AF" xml:space="preserve">// Close USB Channel
       
    14 gPort.Close();</codeblock> </stepxmp> </step> <step id="GUID-1AE8A45A-E066-5401-9B9D-9B209C65AB6C"><cmd/><info>Unload the USB logical device driver using <xref href="GUID-C197C9A7-EA05-3F24-9854-542E984C612D.dita#GUID-C197C9A7-EA05-3F24-9854-542E984C612D/GUID-240D1DA3-BF23-3042-A636-D08E0AA62E49"><apiname>User::FreeLogicalDevice()</apiname></xref>. </info> <stepxmp><codeblock id="GUID-A5655563-5134-5E4E-9D49-BCAF196C095A" xml:space="preserve">User::FreeLogicalDevice(KUsbDeviceName);</codeblock> </stepxmp> </step> </steps> </taskbody></task>