VCL RAD DirectX for C++ Builder

Welcome to

www.tdxlibrary.org

Home of the
the TDx_Library...

=- RAD DirectX =-

"RAD DirectX"
for
C++ Builder

...

Welcome to tdxlibrary.org Latest News

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

Register our Tools Available Downloads

Frequently Asked Questions Links to other sites Information about the tdxlibrary.org website


    TDx_Input_Library v2.00 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: darren_john_dwyer@hotmail.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Links |  Site Information

This page is Copyright © 2019 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.