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.

36 lines
1.3 KiB

  1. /* File: D:\WACKER\tdll\cnct.hh (Created: 10-Jan-1994)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 2 $
  7. * $Date: 7/08/02 6:39p $
  8. */
  9. typedef struct stCnctPrivate *HHCNCT;
  10. struct stCnctPrivate
  11. {
  12. HSESSION hSession;
  13. CRITICAL_SECTION csCnct; // for snychronizing access
  14. HDRIVER hDriver; // baby you can drive my connect
  15. HMODULE hModule; // driver's lib module handle
  16. TCHAR achDllName[MAX_PATH]; // name of file containing driver
  17. time_t tStartTime; // Start time
  18. int (WINAPI *pfDestroy)(const HDRIVER hDriver);
  19. int (WINAPI *pfQueryStatus)(const HDRIVER hDriver);
  20. int (WINAPI *pfConnect)(const HDRIVER hDriver, const unsigned int uFlags);
  21. int (WINAPI *pfDisconnect)(const HDRIVER hDriver, const unsigned int uFlags);
  22. int (WINAPI *pfComEvent)(const HDRIVER hDriver, const enum COM_EVENTS event);
  23. int (WINAPI *pfInit)(const HDRIVER hDriver);
  24. int (WINAPI *pfLoad)(const HDRIVER hDriver);
  25. int (WINAPI *pfSave)(const HDRIVER hDriver);
  26. int (WINAPI *pfSetDestination)(const HDRIVER hDriver, TCHAR *const ach, const size_t cb);
  27. int (WINAPI *pfGetComSettingsString)(const HDRIVER hDriver, LPTSTR pachStr, const size_t cb);
  28. };
  29. void cnctLock(const HHCNCT hhCnct);
  30. void cnctUnlock(const HHCNCT hhCnct);
  31. void cnctStubAll(const HHCNCT hhCnct);