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.

58 lines
1.3 KiB

  1. //////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // libvars.h
  7. //
  8. // Abstract:
  9. // definitions (types, consts, vars) visible only within library
  10. // functions. Also prototypes for functions visible only within
  11. // the library
  12. //
  13. //////////////////////////////////////////////////////////////////////////
  14. #ifndef _TDILIB_VARS_
  15. #define _TDILIB_VARS_
  16. //
  17. // externs for global variables visible only within library
  18. //
  19. extern HANDLE hTdiSampleDriver; // handle used to call driver
  20. extern CRITICAL_SECTION LibCriticalSection; // serialize DeviceIoControl calls...
  21. //
  22. // functions from utils.cpp
  23. //
  24. LONG
  25. TdiLibDeviceIO(
  26. ULONG ulControlCode,
  27. PSEND_BUFFER psbInBuffer,
  28. PRECEIVE_BUFFER prbOutBuffer
  29. );
  30. LONG
  31. TdiLibStartDeviceIO(
  32. ULONG ulControlCode,
  33. PSEND_BUFFER psbInBuffer,
  34. PRECEIVE_BUFFER prbOutBuffer,
  35. OVERLAPPED *pOverLapped
  36. );
  37. LONG
  38. TdiLibWaitForDeviceIO(
  39. OVERLAPPED *pOverlapped
  40. );
  41. #endif // _TDILIB_VARS_
  42. //////////////////////////////////////////////////////////////////////////
  43. // End of libvars.h
  44. //////////////////////////////////////////////////////////////////////////