www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-by-Step Tutorials Component Reference

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    TDx_Input_Library v1.90 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_Input::FindDevice() ]     [ next: GetDeviceStatus() ]     [ prev: EnumDevices() ]

    public:

         virtual bool __fastcall FindDevice( REFGUID pClass, AnsiString* pName, GUID* pInstance );





    -= Go to the TDx_Input description =-    TDX_INPUT::FINDDEVICE()   [ component method ]

    • Description

        The FindDevice() method will retrieve the instance GUID of a newly attached device after the application has recieved a Win32 device management notification.

        More information about device arrival notifications can be found by looking up the DBT_DEVICEARRIVAL event in the Win32 SDK.

        Error values that can be generated are:

        DIERR_DEVICENOTREG

    • Parameters

        Class
        The Class parameter identifies the device class for the device being located.

        The device class GUID can be obtained from the device arrival notification.

        Name
        The Name parameter defines the name of the device.
        The device name can be obtained from the device arrival notification.

        Instance
        The Instance parameter references a GUID for storing the retrieved device instance GUID if the method finds the device and returns successfully.

        Once obtained, this GUID can be passed to TDx_Input::CreateDevice() to create an interface for the device.

        If no device exists, the Instance parameter will reference a NULL GUID.


    • See Also
    • Top





    If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.