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.

69 lines
3.0 KiB

  1. /* File: D:\WACKER\tdll\cnct.h (Created: 10-Jan-1994)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 5 $
  7. * $Date: 10/09/01 9:46a $
  8. */
  9. /* --- Connection driver handle definition (struct never defined) --- */
  10. typedef struct stCnctDriverPublic *HDRIVER;
  11. /* --- Error return codes --- */
  12. #define CNCT_BAD_HANDLE -1 // invalid connection handle
  13. #define CNCT_NO_THREAD -2 // couldn't create a connection thread
  14. #define CNCT_ALREADY_OPEN -3 // connection is already opened
  15. #define CNCT_FIND_DLL_FAILED -4 // couldn't find DLL
  16. #define CNCT_LOAD_DLL_FAILED -5 // couldn't load DLL
  17. #define CNCT_ERROR -6 // general error
  18. #define CNCT_NOT_SUPPORTED -7 // driver doesn't support this function
  19. #define CNCT_IN_DISCONNECT -8 // Already attempting to disconnect.
  20. /* --- Connection status codes --- */
  21. #define CNCT_STATUS_FALSE 0 // disconnected state
  22. #define CNCT_STATUS_TRUE 1 // connected state
  23. #define CNCT_STATUS_CONNECTING 2 // trying to connect
  24. #define CNCT_STATUS_DISCONNECTING 3 // trying to disconnect
  25. #define CNCT_STATUS_ANSWERING 4 // waiting for caller
  26. /* --- cnctConnect Flags (must be powers of two) --- */
  27. #define CNCT_NOCONFIRM 0x0001 // do not pop-up confirmation dialog
  28. #define CNCT_NEW 0x0002 // this is a new connection
  29. #define CNCT_DIALNOW 0x0004 // disconnect flag that forces redial
  30. #define CNCT_PORTONLY 0x0008 // don't dial phone number
  31. #define DISCNCT_NOBEEP 0x0010 // don't beep on disconnect
  32. #define CNCT_WINSOCK 0x0020 // try to connect w/ Winsock to ip address
  33. #define CNCT_ANSWER 0x0040 // wait for a call
  34. #ifdef INCL_EXIT_ON_DISCONNECT
  35. #define DISCNCT_EXIT 0x0080 // exit on disconnect
  36. #else
  37. #define DISCNCT_EXIT 0x0000 // no meaning whatsoever - just a placeholder
  38. #endif
  39. #define CNCT_XFERABORTCONFIRM 0x0100 // Prompt for confirmation to abort file transfers.
  40. #define CNCT_LOSTCARRIER 0x0200 // Loss of carrier.
  41. /* --- Function Prototypes --- */
  42. HCNCT cnctCreateHdl(const HSESSION hSession);
  43. void cnctDestroyHdl(const HCNCT hCnct);
  44. int cnctQueryStatus(const HCNCT hCnct);
  45. int cnctIsModemConnection(const HCNCT hCnct);
  46. int cnctConnect(const HCNCT hCnct, const unsigned int uCnctFlags);
  47. int cnctSetDevice(const HCNCT hCnct, const LPTSTR pachDevice);
  48. int cnctDisconnect(const HCNCT hCnct, const unsigned int uCnctFlags);
  49. int cnctComEvent(const HCNCT hCnct, const enum COM_EVENTS event);
  50. HDRIVER cnctQueryDriverHdl(const HCNCT hCnct);
  51. int cnctLoad(const HCNCT hCnct);
  52. int cnctSave(const HCNCT hCnct);
  53. int cnctSetStartTime(HCNCT hCnct);
  54. int cnctQueryStartTime(const HCNCT hCnct, time_t *pTime);
  55. int cnctQueryElapsedTime(HCNCT hCnct, time_t *pTime);
  56. int cnctInit(const HCNCT hCnct);
  57. void cnctMessage(const HCNCT hCnct, const int idMsg);
  58. int cnctSetDestination(const HCNCT hCnct, TCHAR * const ach, const size_t cb);
  59. int cnctGetComSettingsString(const HCNCT hCnct, LPTSTR pach, const size_t cb);