RegisterModule( )
This BIOS operation call is made from the 16-bit module to register a third party DLL with the BIOS operation manager. This call returns a handle to the 16-bit caller which is used later to dispatch a call to the DLL.
If successful the client’s carry is cleared and the client’s handle in AX will equal (non Zero). Otherwise, the client carry will be set, and an error code will be returned in AX.
Client AX |
Error Code |
AX = 1 |
DLL not found. |
AX = 2 |
Dispatch routine not found. |
AX = 3 |
Initialization routine not found. |
AX = 4 |
Insufficient memory available. |
RegisterModule will load the DLL specified in DS:SI. The DLL initialization routine is called and the DLL dispatch routine is stored. All calls made from the DispatchCall are sent to this routine.
UnRegisterModule, DispatchCall