Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_Input_Library v2.00 Component Reference
|
|
[ TDx_Input::FindDevice() ]
[ next: GetDeviceStatus() ]
[ prev: EnumDevices() ]
public:
virtual bool __fastcall FindDevice( REFGUID pClass, AnsiString* pName, GUID* pInstance );
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.
|
|