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.

203 lines
4.9 KiB

  1. // wiafbd.idl : IDL source for wiafbdrv.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (wiafb.tlb) and marshalling code.
  5. import "unknwn.idl";
  6. import "oaidl.idl";
  7. import "propidl.idl";
  8. [
  9. object,
  10. uuid(A9C5109A-978A-4391-AC39-601FBE847651),
  11. dual,
  12. helpstring("IDeviceProperty Interface"),
  13. pointer_default(unique)
  14. ]
  15. interface IDeviceProperty : IDispatch
  16. {
  17. [id(1), helpstring("method SetCurrentValue")]
  18. HRESULT SetCurrentValue(
  19. [in] LONG lValueID,
  20. [in] VARIANT Value);
  21. [id(2), helpstring("method SetValidRange")]
  22. HRESULT SetValidRange(
  23. [in] LONG lValueID,
  24. [in] LONG lMin,
  25. [in] LONG lMax,
  26. [in] LONG lNom,
  27. [in] LONG lInc);
  28. [id(3), helpstring("method SetValidList")]
  29. HRESULT SetValidList(
  30. [in] LONG lValueID,
  31. [in] VARIANT Value);
  32. [id(4), helpstring("method TestCall")]
  33. HRESULT TestCall();
  34. [id(5), helpstring("method GetCurrentValue")]
  35. HRESULT GetCurrentValue(
  36. [in] LONG lValueID,
  37. [in, out] VARIANT* pvValue);
  38. };
  39. [
  40. object,
  41. uuid(A9C5109A-978A-4391-AC39-601FBE847652),
  42. dual,
  43. helpstring("IDeviceAction Interface"),
  44. pointer_default(unique)
  45. ]
  46. interface IDeviceAction : IDispatch
  47. {
  48. [id(1), helpstring("method Action")]
  49. HRESULT Action(
  50. [out, retval] LONG *plActionID);
  51. [propget, id(2), helpstring("method Value")]
  52. HRESULT Value(
  53. [out, retval] VARIANT* pvValue);
  54. [propput, id(2), helpstring("method Value")]
  55. HRESULT Value(
  56. [in] VARIANT *pvValue);
  57. [id(3), helpstring("method ValueID")]
  58. HRESULT ValueID(
  59. [out, retval] LONG *plValueID);
  60. };
  61. [
  62. object,
  63. uuid(A9C5109A-978A-4391-AC39-601FBE847653),
  64. dual,
  65. helpstring("IDeviceControl Interface"),
  66. pointer_default(unique)
  67. ]
  68. interface IDeviceControl : IDispatch
  69. {
  70. [id(1), helpstring("method RawWrite")]
  71. HRESULT RawWrite(
  72. [in] LONG lPipeNum,
  73. [in] VARIANT *pbuffer,
  74. [in] LONG lbuffersize,
  75. [in] LONG lTimeout);
  76. [id(2), helpstring("method RawRead")]
  77. HRESULT RawRead(
  78. [in] LONG lPipeNum,
  79. [in, out] VARIANT *pbuffer,
  80. [in] LONG lbuffersize,
  81. [in, out] LONG *plbytesread,
  82. [in] LONG lTimeout);
  83. [id(3), helpstring("method ScanRead")]
  84. HRESULT ScanRead(
  85. [in] LONG lPipeNum,
  86. [in] LONG lBytesToRead,
  87. [in, out] LONG *plBytesRead,
  88. [in] LONG lTimeout);
  89. [id(4), helpstring("method RegisterWrite")]
  90. HRESULT RegisterWrite(
  91. [in] LONG lPipeNum,
  92. [in] VARIANT *pbuffer,
  93. [in] LONG lTimeout);
  94. [id(5), helpstring("method RegisterRead")]
  95. HRESULT RegisterRead(
  96. [in] LONG lPipeNum,
  97. [in] LONG lRegNumber,
  98. [in, out] VARIANT *pbuffer,
  99. [in] LONG lTimeout);
  100. [id(6), helpstring("method SetBitsInByte")]
  101. HRESULT SetBitsInByte(
  102. [in] BYTE bMask,
  103. [in] BYTE bValue,
  104. [in, out] BYTE *pbyte);
  105. };
  106. [
  107. object,
  108. uuid(A9C5109A-978A-4391-AC39-601FBE847654),
  109. dual,
  110. helpstring("ILastError Interface"),
  111. pointer_default(unique)
  112. ]
  113. interface ILastError : IDispatch
  114. {
  115. };
  116. [
  117. uuid(4B6B09A4-B221-49DD-917A-B77599D71674),
  118. version(1.0),
  119. helpstring("wiafbdrv 1.0 Type Library")
  120. ]
  121. library WIAFBLib
  122. {
  123. importlib("stdole32.tlb");
  124. importlib("stdole2.tlb");
  125. [
  126. uuid(E9AEF5D5-F652-4B44-9805-80F3A0740F67),
  127. helpstring("_IDeviceActionEvent Interface")
  128. ]
  129. dispinterface _IDeviceActionEvent
  130. {
  131. properties:
  132. methods:
  133. [id(1), helpstring("method DeviceActionEvent")]
  134. HRESULT DeviceActionEvent();
  135. };
  136. [
  137. uuid(96A79FA6-9936-4F9B-B098-EF685F1FEC53),
  138. helpstring("DeviceAction Class")
  139. ]
  140. coclass DeviceAction
  141. {
  142. [default] interface IDeviceAction;
  143. [default, source ] dispinterface _IDeviceActionEvent;
  144. };
  145. [
  146. uuid(96A79FA6-9936-4F9B-B098-EF685F1FEC55),
  147. helpstring("LastError Class")
  148. ]
  149. coclass LastError
  150. {
  151. [default] interface ILastError;
  152. };
  153. [
  154. uuid(96A79FA6-9936-4F9B-B098-EF685F1FEC54),
  155. helpstring("DeviceControl Class")
  156. ]
  157. coclass DeviceControl
  158. {
  159. [default] interface IDeviceControl;
  160. };
  161. [
  162. uuid(96A79FA6-9936-4F9B-B098-EF685F1FEC52),
  163. helpstring("DeviceProperty Class")
  164. ]
  165. coclass DeviceProperty
  166. {
  167. [default] interface IDeviceProperty;
  168. };
  169. };