OpenCBM
Functions
sys/libcommon/install.c File Reference

Install the driver and check if anything needed is there. More...

#include <wdm.h>
#include "cbm_driver.h"
#include "cbmioctl.h"
#include "version.h"

Go to the source code of this file.

Functions

NTSTATUS cbm_install (IN PDEVICE_EXTENSION Pdx, OUT PCBMT_I_INSTALL_OUT ReturnBuffer, IN OUT PULONG ReturnLength)
 Complete driver installation. More...
 

Detailed Description

Install the driver and check if anything needed is there.



Author
Spiro Trikaliotis

Definition in file sys/libcommon/install.c.

Function Documentation

NTSTATUS cbm_install ( IN PDEVICE_EXTENSION  Pdx,
OUT PCBMT_I_INSTALL_OUT  ReturnBuffer,
IN OUT PULONG  ReturnLength 
)

Complete driver installation.

This function performs anything that is needed for completing the driver installation.

Parameters
PdxPointer to the device extension.
ReturnBufferPointer to a buffer which will contain the result.
ReturnLengthPointer to a ULONG which contains the length of the ReturnBuffer on entry, and which will contain the length of the written ReturnBuffer on exit.
Returns
If the routine succeeds, it returns STATUS_SUCCESS. Otherwise, it returns one of the error status values.

If ReturnLength is smaller then the length of CBMT_I_INSTALL_OUT, then only the the first settings are copied there. This way, a caller can get information even if newer versions have more informations to give.

Definition at line 51 of file sys/libcommon/install.c.

References CBM_I_DRIVER_INSTALL_0M_NO_INTERRUPT, CBMT_I_INSTALL_OUT_MAKE_VERSION, CBMT_I_INSTALL_OUT_MAKE_VERSION_EX, CBMT_I_INSTALL_OUT::DriverVersion, CBMT_I_INSTALL_OUT::DriverVersionEx, CBMT_I_INSTALL_OUT::ErrorFlags, FUNC_ENTER, and ParPortAllowInterruptIoctl().

Referenced by cbm_execute_devicecontrol().