en:docs:win16:api:user:opendriver

This is part of Win16 API which allow to create versions of program from one source code to run under OS/2 and Win16. Under OS/2 program can be running under Win-OS/2 if program is Windows NE executable, and with help on Windows Libraries for OS/2, if it is OS/2 NE executable. Here is a WLO to OS/2 API mapping draft

2021/09/01 04:23 · prokushev · 0 Comments

OpenDriver

Brief

Opens an installable driver.

Syntax

HDRVR WINAPI OpenDriver(LPCSTR szDriverName, LPCSTR szSectionName, LPARAM lParam);

Parameters

  • szDriverName

Far pointer to driver name.

  • szSectionName

Far pointer to section name in SYSTEM.INI.

  • lParam

Additional parameter.

Return Code

Returns handle to the driver, or NULL if failed.

Notes

Installable drivers provide extended functionality beyond standard Windows API.

C Binding

HDRVR hDriver = OpenDriver("MYDRV", "MyDriverSection", 0);

MASM Binding

push lParam
push seg szSectionName    ; szSectionName segment
push offset szSectionName ; szSectionName offset
push seg szDriverName     ; szDriverName segment
push offset szDriverName  ; szDriverName offset
call OpenDriver

See also