Leaked source code of windows server 2003
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.

47 lines
1.1 KiB

  1. /* comdev.h -- Exported definitions for communications device routines
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 1 $
  7. * $Date: 10/05/98 12:40p $
  8. */
  9. #define COM_MAX_DEVICE_NAME 40
  10. #define COM_MAX_PORT_NAME 120
  11. typedef struct
  12. {
  13. int iAction;
  14. int iReserved;
  15. TCHAR szDeviceName[COM_MAX_DEVICE_NAME];
  16. TCHAR szFileName[MAX_PATH];
  17. HANDLE hFind;
  18. WIN32_FIND_DATA stFindData;
  19. } COM_FIND_DEVICE;
  20. typedef struct
  21. {
  22. int iAction;
  23. TCHAR szPortName[COM_MAX_PORT_NAME];
  24. HINSTANCE hModule;
  25. long lReserved1;
  26. long lReserved2;
  27. long lReserved3;
  28. long lReserved4;
  29. void *pvData;
  30. } COM_FIND_PORT;
  31. // Values for usAction field in COM_FIND_DEVICE and COM_FIND_PORT
  32. #define COM_FIND_FIRST 0
  33. #define COM_FIND_NEXT 1
  34. #define COM_FIND_DONE 2
  35. // -=-=-=-=-=-=-=-=-=-=-=- EXPORTED PROTOTYPES -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  36. extern int ComFindDevices(COM_FIND_DEVICE * const pstFind);
  37. int ComGetFileNameFromDeviceName(const TCHAR * const pszDeviceName,
  38. TCHAR * const pszFileName,
  39. const int nSize);