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.

83 lines
964 B

  1. /*++
  2. Copyright (c) 1997-1998 Microsoft Corporation
  3. Module Name:
  4. hpojsti.h
  5. Abstract:
  6. Notes:
  7. Author:
  8. Vlad Sadovsky (VladS) 6/4/1999
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. 6/4/1999 VladS Created
  13. --*/
  14. //
  15. // Set packing
  16. //
  17. #include <pshpack8.h>
  18. //
  19. // Escape function codes
  20. //
  21. //
  22. // Get timeout values
  23. //
  24. #define HPOJ_STI_GET_TIMEOUTS 1
  25. //
  26. // Set timeout values
  27. //
  28. #define HPOJ_STI_SET_TIMEOUTS 2
  29. //
  30. // Escape data structures
  31. //
  32. typedef struct _PTIMEOUTS_INFO
  33. {
  34. DWORD dwReadTimeout;
  35. DWORD dwWriteTimeout;
  36. } TIMEOUTS_INFO, *PTIMEOUTS_INFO;
  37. EXTERN_C
  38. INT32
  39. WINAPI
  40. GetScannerTimeouts(
  41. INT32 *puiReadTimeout,
  42. INT32 *puiWriteTimeout
  43. );
  44. EXTERN_C
  45. INT32
  46. WINAPI
  47. SetScannerTimeouts(
  48. INT32 uiReadTimeout,
  49. INT32 uiWriteTimeout
  50. );
  51. //
  52. // Reset packing
  53. //
  54. #include <poppack.h>