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.

185 lines
4.4 KiB

  1. /******************************************************************************
  2. stiddk.cpp
  3. Copyright (C) Microsoft Corporation, 1997 - 1998
  4. All rights reserved
  5. Notes:
  6. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  7. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  8. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  9. PURPOSE.
  10. ******************************************************************************/
  11. /*****************************************************************************
  12. int IsScanDevice(PSTI_DEVICE_INFORMATION pStiDevI)
  13. Determine whether we have Acquire commands for device
  14. Parameters:
  15. Pointer to Device Information structure
  16. Return:
  17. 1 if Acquire commands available, 0 otherwise
  18. *****************************************************************************/
  19. int IsScanDevice(PSTI_DEVICE_INFORMATION pStiDevI)
  20. {
  21. return (0);
  22. }
  23. /******************************************************************************
  24. HRESULT
  25. WINAPI
  26. SendDeviceCommandString(
  27. PSTIDEVICE pStiDevice,
  28. LPSTR pszFormat,
  29. ...
  30. )
  31. Send formatted command string to device
  32. Parameters:
  33. StiDevice buffer and the command string
  34. Return:
  35. Result of the call.
  36. ******************************************************************************/
  37. HRESULT
  38. WINAPI
  39. SendDeviceCommandString(
  40. PSTIDEVICE pStiDevice,
  41. LPSTR pszFormat,
  42. ...
  43. )
  44. {
  45. HRESULT hres = STIERR_UNSUPPORTED;
  46. return (hres);
  47. }
  48. /******************************************************************************
  49. HRESULT
  50. WINAPI
  51. TransactDevice(
  52. PSTIDEVICE pStiDevice,
  53. LPSTR lpResultBuffer,
  54. UINT cbResultBufferSize,
  55. LPSTR pszFormat,
  56. ...
  57. )
  58. Send formatted command string to device and return data in a buffer.
  59. Parameters:
  60. StiDevice buffer, data buffer, sizeof databuffer and the command string.
  61. Return:
  62. Result of the call.
  63. ******************************************************************************/
  64. HRESULT
  65. WINAPI
  66. TransactDevice(
  67. PSTIDEVICE pStiDevice,
  68. LPSTR lpResultBuffer,
  69. UINT cbResultBufferSize,
  70. LPSTR pszFormat,
  71. ...
  72. )
  73. {
  74. HRESULT hres = STIERR_UNSUPPORTED;
  75. return (hres);
  76. }
  77. /*****************************************************************************
  78. void StiLamp(int nOnOff)
  79. Turn the scanner lamp on and off
  80. Parameters:
  81. Send "ON" to turn lamp on, "OFF" to turn it off.
  82. Return:
  83. none
  84. *****************************************************************************/
  85. void StiLamp(int nOnOff)
  86. {
  87. return;
  88. }
  89. /*****************************************************************************
  90. INT StiScan(HWND hWnd)
  91. Scan and display an image from device.
  92. Parameters:
  93. Handle to the window to display image in.
  94. Return:
  95. 0 on success, -1 on error
  96. *****************************************************************************/
  97. INT StiScan(HWND hWnd)
  98. {
  99. return (-1);
  100. }
  101. /*****************************************************************************
  102. INT CreateScanDIB(HWND);
  103. Create a DIB to display scanned image..
  104. Parameters:
  105. Handle to the window to display image in.
  106. Return:
  107. 0 on success, -1 on error
  108. *****************************************************************************/
  109. INT CreateScanDIB(HWND hWnd)
  110. {
  111. return (-1);
  112. }
  113. /*****************************************************************************
  114. INT DeleteScanDIB();
  115. Delete the DIB used to display a scanned image..
  116. Parameters:
  117. Return:
  118. 0 on success, -1 on error
  119. *****************************************************************************/
  120. INT DeleteScanDIB()
  121. {
  122. return (-1);
  123. }
  124. /*****************************************************************************
  125. INT DisplayScanDIB(HWND);
  126. Show the DIB.
  127. Parameters:
  128. Handle to the window to display image in.
  129. Return:
  130. 0 on success, -1 on error
  131. *****************************************************************************/
  132. INT DisplayScanDIB(HWND hWnd)
  133. {
  134. return (-1);
  135. }