Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.2 KiB

  1. /*++
  2. Microsoft Windows
  3. Copyright (C) Microsoft Corporation, 1981 - 1999
  4. Module Name:
  5. devicelist.h
  6. Abstract:
  7. Author:
  8. Rahul Thombre (RahulTh) 4/30/1998
  9. Revision History:
  10. 4/30/1998 RahulTh
  11. Created this module.
  12. --*/
  13. // DeviceList.h: interface for the CDeviceList class.
  14. //
  15. //////////////////////////////////////////////////////////////////////
  16. #if !defined(AFX_DEVICELIST_H__D790FBDD_BAA9_11D1_A60E_00C04FC252BD__INCLUDED_)
  17. #define AFX_DEVICELIST_H__D790FBDD_BAA9_11D1_A60E_00C04FC252BD__INCLUDED_
  18. #if _MSC_VER >= 1000
  19. #pragma once
  20. #endif // _MSC_VER >= 1000
  21. #include "RpcHeaders.h"
  22. class CDeviceList
  23. {
  24. public:
  25. BOOL
  26. GetDeviceType(
  27. LONG iDevID,
  28. OBEX_DEVICE_TYPE *Type
  29. );
  30. ULONG GetDeviceID (int iDevIndex);
  31. LONG SelectDevice (CWnd* pWnd, TCHAR* lpszDevName);
  32. ULONG GetDeviceCount (void);
  33. CDeviceList& operator =(POBEX_DEVICE_LIST pDevList);
  34. CDeviceList();
  35. virtual ~CDeviceList();
  36. friend class CMultDevices;
  37. private:
  38. void GetDeviceName (LONG iDevID, TCHAR* lpszDevName);
  39. POBEX_DEVICE m_pDeviceInfo;
  40. int m_lNumDevices;
  41. CRITICAL_SECTION m_criticalSection;
  42. };
  43. #endif // !defined(AFX_DEVICELIST_H__D790FBDD_BAA9_11D1_A60E_00C04FC252BD__INCLUDED_)