jwadhcpssdk.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. {******************************************************************************}
  2. { }
  3. { DHCP Callout DLL API interface unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: dhcpssdk.h, released June 2000. The original Pascal }
  9. { code is: DhcpSSdk.pas, released December 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  16. { }
  17. { You may retrieve the latest version of this file at the Project JEDI }
  18. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  19. { }
  20. { The contents of this file are used with permission, subject to the Mozilla }
  21. { Public License Version 1.1 (the "License"); you may not use this file except }
  22. { in compliance with the License. You may obtain a copy of the License at }
  23. { http://www.mozilla.org/MPL/MPL-1.1.html }
  24. { }
  25. { Software distributed under the License is distributed on an "AS IS" basis, }
  26. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  27. { the specific language governing rights and limitations under the License. }
  28. { }
  29. { Alternatively, the contents of this file may be used under the terms of the }
  30. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  31. { provisions of the LGPL License are applicable instead of those above. }
  32. { If you wish to allow use of your version of this file only under the terms }
  33. { of the LGPL License and not to allow others to use your version of this file }
  34. { under the MPL, indicate your decision by deleting the provisions above and }
  35. { replace them with the notice and other provisions required by the LGPL }
  36. { License. If you do not delete the provisions above, a recipient may use }
  37. { your version of this file under either the MPL or the LGPL License. }
  38. { }
  39. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  40. { }
  41. {******************************************************************************}
  42. unit JwaDhcpSSdk;
  43. {$WEAKPACKAGEUNIT}
  44. {$HPPEMIT ''}
  45. {$HPPEMIT '#include "dhcpssdk.h"'}
  46. {$HPPEMIT ''}
  47. {$HPPEMIT 'typedef DHCP_IP_ADDRESS *LPDHCP_IP_ADDRESS;'}
  48. {$HPPEMIT ''}
  49. {$I jediapilib.inc}
  50. interface
  51. uses
  52. JwaWinNT, JwaWinType;
  53. // This structure could change any day. This will be accurate only for version 0 -- which
  54. // has to be checked for by any CalloutDLL that is hooking onto the DhcpHandleOptionsHook.
  55. type
  56. DHCP_IP_ADDRESS = DWORD;
  57. {$EXTERNALSYM DHCP_IP_ADDRESS}
  58. LPDHCP_IP_ADDRESS = ^DHCP_IP_ADDRESS;
  59. {$NODEFINE LPDHCP_IP_ADDRESS}
  60. TDhcpIpAddress = DHCP_IP_ADDRESS;
  61. _DHCP_SERVER_OPTIONS = record
  62. MessageType: LPBYTE;
  63. SubnetMask: LPDHCP_IP_ADDRESS;
  64. RequestedAddress: LPDHCP_IP_ADDRESS;
  65. RequestLeaseTime: LPDWORD;
  66. OverlayFields: LPBYTE;
  67. RouterAddress: LPDHCP_IP_ADDRESS;
  68. Server: LPDHCP_IP_ADDRESS;
  69. ParameterRequestList: LPBYTE;
  70. ParameterRequestListLength: DWORD;
  71. MachineName: PCHAR;
  72. MachineNameLength: DWORD;
  73. ClientHardwareAddressType: BYTE;
  74. ClientHardwareAddressLength: BYTE;
  75. ClientHardwareAddress: LPBYTE;
  76. ClassIdentifier: PCHAR;
  77. ClassIdentifierLength: DWORD;
  78. VendorClass: LPBYTE;
  79. VendorClassLength: DWORD;
  80. DNSFlags: DWORD;
  81. DNSNameLength: DWORD;
  82. DNSName: LPBYTE;
  83. DSDomainNameRequested: LongBool;
  84. DSDomainName: PCHAR;
  85. DSDomainNameLen: DWORD;
  86. ScopeId: LPDWORD;
  87. end;
  88. {$EXTERNALSYM _DHCP_SERVER_OPTIONS}
  89. DHCP_SERVER_OPTIONS = _DHCP_SERVER_OPTIONS;
  90. {$EXTERNALSYM DHCP_SERVER_OPTIONS}
  91. LPDHCP_SERVER_OPTIONS = ^DHCP_SERVER_OPTIONS;
  92. {$EXTERNALSYM LPDHCP_SERVER_OPTIONS}
  93. TDhcpServerOptions = DHCP_SERVER_OPTIONS;
  94. PDhcpServerOptions = LPDHCP_SERVER_OPTIONS;
  95. //
  96. // The location in registry where the REG_MULTI_SZ list of callout DLLs
  97. // that the DHCP Server will try to load.
  98. //
  99. const
  100. DHCP_CALLOUT_LIST_KEY = WideString('System\CurrentControlSet\Services\DHCPServer\Parameters');
  101. {$EXTERNALSYM DHCP_CALLOUT_LIST_KEY}
  102. DHCP_CALLOUT_LIST_VALUE = WideString('CalloutDlls');
  103. {$EXTERNALSYM DHCP_CALLOUT_LIST_VALUE}
  104. DHCP_CALLOUT_LIST_TYPE = REG_MULTI_SZ;
  105. {$EXTERNALSYM DHCP_CALLOUT_LIST_TYPE}
  106. DHCP_CALLOUT_ENTRY_POINT = 'DhcpServerCalloutEntry';
  107. {$EXTERNALSYM DHCP_CALLOUT_ENTRY_POINT}
  108. //
  109. // Control CODES used by DHCP Server to notify server state change.
  110. //
  111. DHCP_CONTROL_START = $00000001;
  112. {$EXTERNALSYM DHCP_CONTROL_START}
  113. DHCP_CONTROL_STOP = $00000002;
  114. {$EXTERNALSYM DHCP_CONTROL_STOP}
  115. DHCP_CONTROL_PAUSE = $00000003;
  116. {$EXTERNALSYM DHCP_CONTROL_PAUSE}
  117. DHCP_CONTROL_CONTINUE = $00000004;
  118. {$EXTERNALSYM DHCP_CONTROL_CONTINUE}
  119. //
  120. // Other ControlCodes used by various Callout HOOKS.
  121. //
  122. DHCP_DROP_DUPLICATE = $00000001; // duplicate of pkt being processed
  123. {$EXTERNALSYM DHCP_DROP_DUPLICATE}
  124. DHCP_DROP_NOMEM = $00000002; // not enough server mem in queues
  125. {$EXTERNALSYM DHCP_DROP_NOMEM}
  126. DHCP_DROP_INTERNAL_ERROR = $00000003; // ooops?
  127. {$EXTERNALSYM DHCP_DROP_INTERNAL_ERROR}
  128. DHCP_DROP_TIMEOUT = $00000004; // too late, pkt is too old
  129. {$EXTERNALSYM DHCP_DROP_TIMEOUT}
  130. DHCP_DROP_UNAUTH = $00000005; // server is not authorized to run
  131. {$EXTERNALSYM DHCP_DROP_UNAUTH}
  132. DHCP_DROP_PAUSED = $00000006; // service is paused
  133. {$EXTERNALSYM DHCP_DROP_PAUSED}
  134. DHCP_DROP_NO_SUBNETS = $00000007; // no subnets configured on server
  135. {$EXTERNALSYM DHCP_DROP_NO_SUBNETS}
  136. DHCP_DROP_INVALID = $00000008; // invalid packet or client
  137. {$EXTERNALSYM DHCP_DROP_INVALID}
  138. DHCP_DROP_WRONG_SERVER = $00000009; // client in different DS enterprise
  139. {$EXTERNALSYM DHCP_DROP_WRONG_SERVER}
  140. DHCP_DROP_NOADDRESS = $0000000A; // no address available to offer
  141. {$EXTERNALSYM DHCP_DROP_NOADDRESS}
  142. DHCP_DROP_PROCESSED = $0000000B; // packet has been processed
  143. {$EXTERNALSYM DHCP_DROP_PROCESSED}
  144. DHCP_DROP_GEN_FAILURE = $00000100; // catch-all error
  145. {$EXTERNALSYM DHCP_DROP_GEN_FAILURE}
  146. DHCP_SEND_PACKET = $10000000; // send the packet on wire
  147. {$EXTERNALSYM DHCP_SEND_PACKET}
  148. DHCP_PROB_CONFLICT = $20000001; // address conflicted..
  149. {$EXTERNALSYM DHCP_PROB_CONFLICT}
  150. DHCP_PROB_DECLINE = $20000002; // an addr got declined
  151. {$EXTERNALSYM DHCP_PROB_DECLINE}
  152. DHCP_PROB_RELEASE = $20000003; // an addr got released
  153. {$EXTERNALSYM DHCP_PROB_RELEASE}
  154. DHCP_PROB_NACKED = $20000004; // a client is being nacked.
  155. {$EXTERNALSYM DHCP_PROB_NACKED}
  156. DHCP_GIVE_ADDRESS_NEW = $30000001; // give client a "new" address
  157. {$EXTERNALSYM DHCP_GIVE_ADDRESS_NEW}
  158. DHCP_GIVE_ADDRESS_OLD = $30000002; // renew client's "old" address
  159. {$EXTERNALSYM DHCP_GIVE_ADDRESS_OLD}
  160. DHCP_CLIENT_BOOTP = $30000003; // client is a BOOTP client
  161. {$EXTERNALSYM DHCP_CLIENT_BOOTP}
  162. DHCP_CLIENT_DHCP = $30000004; // client is a DHCP client
  163. {$EXTERNALSYM DHCP_CLIENT_DHCP}
  164. type
  165. LPDHCP_CONTROL = function(dwControlCode: DWORD; lpReserved: LPVOID): DWORD; stdcall;
  166. {$EXTERNALSYM LPDHCP_CONTROL}
  167. PDhcpControl = LPDHCP_CONTROL;
  168. {
  169. Routine Description:
  170. This routine is called whenever the DHCP Server service is
  171. started, stopped, paused or continued as defined by the values of
  172. the dwControlCode parameter. The lpReserved parameter is reserved
  173. for future use and it should not be interpreted in any way. This
  174. routine should not block.
  175. Arguments:
  176. dwControlCode - one of the DHCP_CONTROL_* values
  177. lpReserved - reserved for future use.
  178. }
  179. type
  180. LPDHCP_NEWPKT = function(var Packet: LPBYTE; var PacketSize: DWORD; IpAddress: DWORD;
  181. Reserved: LPVOID; var PktContext: LPVOID; ProcessIt: LPBOOL): DWORD; stdcall;
  182. {$EXTERNALSYM LPDHCP_NEWPKT}
  183. PDhcpNewPkt = LPDHCP_NEWPKT;
  184. {
  185. Routine Description:
  186. This routine is called soon after the DHCP Server receives a
  187. packet that it attempts to process. This routine is in the
  188. critical path of server execution and should return very fast, as
  189. otherwise server performance will be impacted. The Callout DLL
  190. can modify the buffer or return a new buffer via the Packet,
  191. PacketSize arguments. Also, if the callout DLL has internal
  192. structures to keep track of the packet and its progress, it can
  193. then return a context to this packet in the PktContext parameter.
  194. This context will be passed to almost all other hooks to indicate
  195. the packet being referred to. Also, if the Callout DLL is
  196. planning on processing the packet or for some other reason the
  197. DHCP server is not expected to process this packet, then it can
  198. set the ProcessIt flag to FALSE to indicate that the packet is to
  199. be dropped.
  200. Arguments:
  201. Packet - This parameter points to a character buffer that holds
  202. the actual packet received by the DHCP Server.
  203. PacketSize - This parameter points to a variable that holds the
  204. size of the above buffer.
  205. IpAddress - This parameter points to an IPV4 host order IP address
  206. of the socket that this packet was received on.
  207. Reserved -Reserved for future use.
  208. PktContect - This is an opaque pointer used by the DHCP Server for
  209. future references to this packet. It is expected that the callout
  210. DLL will provide this pointer if it is interested in keeping track
  211. of the packet. (See the descriptions for the hooks below for
  212. other usage of this Context).
  213. ProcessIt - This is a BOOL flag that the CalloutDll can set to
  214. TRUE or reset to indicate if the DHCP Server should continue
  215. processing this packet or not, respectively.
  216. }
  217. type
  218. LPDHCP_DROP_SEND = function(var Packet: LPBYTE; var PacketSize: DWORD;
  219. ControlCode, IpAddress: DWORD; Reserved, PktContext: LPVOID): DWORD; stdcall;
  220. {$EXTERNALSYM LPDHCP_DROP_SEND}
  221. PDhcpDropSend = LPDHCP_DROP_SEND;
  222. {
  223. Routine Description:
  224. This hook is called if a packet is (DropPktHook) dropped for some
  225. reason or if the packet is completely processed. (If a packet is
  226. dropped, the hook is called twice as it is called once again to
  227. note that the packet has been completely processed). The callout
  228. DLL should be prepared to handle this hook multiple times for a
  229. packet. This routine should not block. The ControlCode parameter
  230. defines the reasons for the packet being dropped:
  231. * DHCP_DROP_DUPLICATE - This packet is a duplicate of another
  232. received by the server.
  233. * DHCP_DROP_NOMEM - Not enough memory to process the packet.
  234. * DHCP_DROP_INTERNAL_ERROR - Unexpected nternal error occurred.
  235. * DHCP_DROP_TIMEOUT - The packet is too old to process.
  236. * DHCP_DROP_UNAUTH - The server is not authorized.
  237. * DHCP_DROP_PAUSED - The server is paused.
  238. * DHCP_DROP_NO_SUBNETS - There are no subnets configured.
  239. * DHCP_DROP_INVALID - The packet is invalid or it came on an
  240. invalid socket ..
  241. * DHCP_DROP_WRONG_SERVER - The packet was sent to the wrong DHCP Server.
  242. * DHCP_DROP_NOADDRESS - There is no address to offer.
  243. * DHCP_DROP_PROCESSED - The packet has been processed.
  244. * DHCP_DROP_GEN_FAILURE - An unknown error occurred.
  245. This routine is also called right before a response is sent down
  246. the wire (SendPktHook) and in this case the ControlCode has a
  247. value of DHCP_SEND_PACKET.
  248. Arguments:
  249. Packet - This parameter points to a character buffer that holds
  250. the packet being processed by the DHCP Server.
  251. PacketSize - This parameter points to a variable that holds the
  252. size of the above buffer.
  253. ControlCode - See description for various control codes.
  254. IpAddress - This parameter points to an IPV4 host order IP address
  255. of the socket that this packet was received on.
  256. Reserved - Reserved for future use.
  257. PktContext - This parameter is the packet context that the Callout
  258. DLL NewPkt Hook returned for this packet. This can be used to
  259. track a packet.
  260. }
  261. type
  262. LPDHCP_PROB = function(Packet: LPBYTE; PacketSize, ControlCode, IpAddress,
  263. AltAddress: DWORD; Reserved, PktContext: LPVOID): DWORD; stdcall;
  264. {$EXTERNALSYM LPDHCP_PROB}
  265. PDhcpProb = LPDHCP_PROB;
  266. {
  267. Routine Description:
  268. This routine is called whenever special events occur that cause
  269. the packet to be dropped etc. The possible ControlCodes and their
  270. meanings are as follows:
  271. * DHCP_PROB_CONFLICT - The address attempted to be offered
  272. (AltAddress) is in use in the network already.
  273. * DHCP_PROB_DECLINE - The packet was a DECLINE message for the
  274. address specified in AltAddress.
  275. * DHCP_PROB_RELEASE - The packet was a RELEASE message for the
  276. address specified in AltAddress.
  277. * DHCP_PROB_NACKED - The packet was a REQUEST message for address
  278. specified in AltAddress and it was NACKed by the server.
  279. This routine should not block.
  280. Arguments:
  281. Packet - This parameter is the buffer of the packet being
  282. processed.
  283. PacketSize - This is the size of the above buffer.
  284. ControlCode - Specifies the event. See description below for
  285. control codes and meanings.
  286. IpAddress - IpV4 address of socket this packet was received on.
  287. AltAddress - Request IpV4 Address or Ip address that is in
  288. conflict.
  289. Reserved - Reserve for future use.
  290. PktContext - This is the context returned by the NewPkt hook for
  291. this packet.
  292. }
  293. type
  294. LPDHCP_GIVE_ADDRESS = function(Packet: LPBYTE; PacketSize, ControlCode, IpAddress,
  295. AltAddress, AddrType, LeaseTime: DWORD; Reserved, PktContext: LPVOID): DWORD; stdcall;
  296. {$EXTERNALSYM LPDHCP_GIVE_ADDRESS}
  297. PDhcpGiveAddress = LPDHCP_GIVE_ADDRESS;
  298. {
  299. Routine Description:
  300. This routine is called when the server is about to send an ACK to
  301. a REQUEST message. The ControlCode specifies if the address is a
  302. totally new address or if it an renewal of an old address (with
  303. values DHCP_GIVE_ADDRESS_NEW and DHCP_GIVE_ADDRESS_OLD
  304. respectively). The address being offered is passed as the
  305. AltAddress parameter and the AddrType parameter can be one of
  306. DHCP_CLIENT_BOOTP or DHCP_CLIENT_DHCP indicating whether the
  307. client is using BOOTP or DHCP respectively. This call should not
  308. block.
  309. Arguments:
  310. Packet - This parameter is the buffer of the packet being
  311. processed.
  312. PacketSize - This is the size of the above buffer.
  313. ControlCode - See description above for control codes and
  314. meanings.
  315. IpAddress - IpV4 address of socket this packet was received on.
  316. AltAddress - IpV4 address being ACKed to the client.
  317. AddrType - Is this a DHCP or BOOTP address?
  318. LeaseTime - Lease duration being passed.
  319. Reserved - Reserve for future use.
  320. PktContext - This is the context returned by the NewPkt hook for
  321. this packet.
  322. }
  323. type
  324. LPDHCP_HANDLE_OPTIONS = function(Packet: LPBYTE; PacketSize: DWORD;
  325. Reserved, PktContext: LPVOID; ServerOptions: DHCP_SERVER_OPTIONS): DWORD; stdcall;
  326. {$EXTERNALSYM LPDHCP_HANDLE_OPTIONS}
  327. TDhcpHandleOptions = LPDHCP_HANDLE_OPTIONS;
  328. {
  329. Routine Description:
  330. This routine can be utilized by the CalloutDLL to avoid parsing
  331. the whole packet. The packet is parsed by the server and some
  332. commonly used options are returned in the parsed pointers
  333. structure (see header for definition of DHCP_SERVER_OPTIONS). The
  334. hook is expected to make a copy of the structure pointed to by
  335. ServerOptions if it needs it beyond this function call. This
  336. routine may be called several times for a single packet. This
  337. routine should not block.
  338. Arguments:
  339. Packet - This parameter is the buffer of the packet being
  340. processed.
  341. PacketSize - This is the size of the above buffer.
  342. Reserved - Reserve for future use.
  343. PktContext - This is the context returned by the NewPkt hook for
  344. this packet.
  345. ServerOptions - This parameter is the structure that contains a
  346. bunch of pointers that represent corresponding options.
  347. }
  348. type
  349. LPDHCP_DELETE_CLIENT = function(IpAddress: DWORD; HwAddress: LPBYTE;
  350. HwAddressLength: ULONG; Reserved, ClientType: DWORD): DWORD; stdcall;
  351. {$EXTERNALSYM LPDHCP_DELETE_CLIENT}
  352. PDhcpDeleteClient = LPDHCP_DELETE_CLIENT;
  353. {
  354. Routine Description:
  355. This routine is called before a client lease is deleted off the
  356. active leases database. The ClientType field is currently not
  357. provided and this should not be used. This routine should not
  358. block.
  359. Arguments:
  360. IpAddress - IpV4 address of the client lease being deleted.
  361. HwAddress - Buffer holding the Hardware address of the client (MAC).
  362. HwAddressLength - This specifies the length of the above buffer.
  363. Reserved - Reserved for future use.
  364. ClientType - Reserved for future use.
  365. }
  366. type
  367. _DHCP_CALLOUT_TABLE = record
  368. DhcpControlHook: LPDHCP_CONTROL;
  369. DhcpNewPktHook: LPDHCP_NEWPKT;
  370. DhcpPktDropHook: LPDHCP_DROP_SEND;
  371. DhcpPktSendHook: LPDHCP_DROP_SEND;
  372. DhcpAddressDelHook: LPDHCP_PROB;
  373. DhcpAddressOfferHook: LPDHCP_GIVE_ADDRESS;
  374. DhcpHandleOptionsHook: LPDHCP_HANDLE_OPTIONS;
  375. DhcpDeleteClientHook: LPDHCP_DELETE_CLIENT;
  376. DhcpExtensionHook: LPVOID;
  377. DhcpReservedHook: LPVOID;
  378. end;
  379. {$EXTERNALSYM _DHCP_CALLOUT_TABLE}
  380. DHCP_CALLOUT_TABLE = _DHCP_CALLOUT_TABLE;
  381. {$EXTERNALSYM DHCP_CALLOUT_TABLE}
  382. LPDHCP_CALLOUT_TABLE = ^DHCP_CALLOUT_TABLE;
  383. {$EXTERNALSYM LPDHCP_CALLOUT_TABLE}
  384. TDhcpCalloutTable = DHCP_CALLOUT_TABLE;
  385. PDhcpCalloutTable = LPDHCP_CALLOUT_TABLE;
  386. type
  387. LPDHCP_ENTRY_POINT_FUNC = function(ChainDlls: LPWSTR; CalloutVersion: DWORD;
  388. var CalloutTbl: DHCP_CALLOUT_TABLE): DWORD; stdcall;
  389. {$EXTERNALSYM LPDHCP_ENTRY_POINT_FUNC}
  390. PDhcpEntryPointFunc = LPDHCP_ENTRY_POINT_FUNC;
  391. {
  392. Routine Description:
  393. This is the routine that is called by the DHCP Server when it
  394. successfully loads a DLL. If the routine succeeds, then the
  395. DHCP Server does not attempt to load any of the DLLs specified in
  396. the ChainDlls list of DLLs. If this function fails for some
  397. reason, then the DHCP Server proceeds to the next DLL in the
  398. ChainDlls structure.
  399. Note that for version negotiation, the server may call this
  400. routine several times until a compatible version is found.
  401. It is expected that the entrypoint routine would walk through the
  402. names of the dlls and attempt to load each of them and when it
  403. succeeds in retrieving the entry point, it attempts to get the
  404. cumulative set of hooks by repeating the above procedure(as done
  405. by the DHCP Server).
  406. Arguments:
  407. ChainDlls - This is a set of DLL names in REG_MULTI_SZ format (as
  408. returned by Registry function calls). This does not contain the
  409. name of the current DLL itself, but only the names of all DLLs
  410. that follow the current DLL.
  411. CalloutVersion - This is the version that the Callout DLL is
  412. expected to support. The current version number is 0.
  413. CalloutTbl - This is the cumulative set of Hooks that is needed by
  414. the current DLLs as well as all the DLLs in ChainDlls. It is the
  415. responsibility of the current DLL to retrive the cumulative set of
  416. Hooks and merge that with its own set of hooks and return that in
  417. this table structure. The table structure is defined above.
  418. }
  419. implementation
  420. end.