DriverEntry of IDE Controller Minidriver function
DriverEntry initializes the minidriver.
Syntax
NTSTATUS DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath
);
Parameters
DriverObject [in]
Contains a pointer to the IDE controller minidriver's driver object.
RegistryPath [in]
Specifies a string indicating the registry path to the driver's configuration information in the registry.
Return value
DriverEntry returns STATUS_SUCCESS if successful; otherwise it returns the error code received from the PciIdeXInitialize library routine.
Remarks
Each controller minidriver must have a routine named DriverEntry in order to load.
An IDE controller minidriver's DriverEntry routine must call the PciIdeXInitialize library routine. PciIdeXInitialize initializes the controller minidriver's dispatch tables, allocates an extension for the DriverObject, and stores various values in the driver object's extension. Values that must be stored in the driver object's extension include the size of the driver extension and a pointer to a controller minidriver HwIdeXGetControllerProperties routine that retrieves information about the IDE controller.
Requirements
Target platform |
Desktop |
Header |
Ide.h (include Ide.h) |
Library |
NtosKrnl.lib |
DLL |
NtosKrnl.exe |
See also
Feedback
Submit and view feedback for