NdisReset
This function forwards a reset request to an underlying driver.
VOID NdisReset(
OUT PNDIS_STATUS Status,
IN NDIS_HANDLE NdisBindingHandle );
Parameters
Status
Pointer to a caller-supplied variable that is set on return from this function. The underlying driver determines which NDIS_STATUS_XXX is returned, but it is usually one of the following values:Value Description NDIS_STATUS_SUCCESS The underlying driver reset its network adapter or virtual network adapter to its initial state. NDIS_STATUS_PENDING The request is being handled asynchronously, and the caller's ProtocolResetComplete function will be called when it is completed. NDIS_STATUS_RESET_IN_PROGRESS The underlying driver is currently resetting its network adapter, so this request is superfluous. Moreover, the caller's ProtocolStatus function was or will be called with NDIS_STATUS_RESET_START to indicate that a reset is in progress. NDIS_STATUS_NOT_RESETTABLE The underlying network adapter cannot be reset by software commands. NDIS_STATUS_ADAPTER_REMOVED or NDIS_STATUS_FAILURE The caller's binding is already closed, so no reset will be attempted for this caller. NDIS_STATUS_CLOSING The caller's binding is currently being closed, so no reset will be attempted for this caller. NDIS_STATUS_SOFT_ERRORS The underlying network adapter driver reset the netcard, but one or more recoverable hardware errors occurred during this operation. The network adapter driver has logged the error(s). NDIS_STATUS_HARD_ERRORS The underlying network adapter driver attempted to reset the netcard, but one or more unrecoverable hardware errors occurred during this operation. The network adapter driver has logged the error(s). NDIS_STATUS_NOT_ACCEPTED This value usually is a nonspecific default, returned when none of the more specific NDIS_STATUS_XXX caused NDIS or the underlying network adapter driver to fail the request. NdisBindingHandle
Handle returned by the NdisOpenAdapter function that identifies the target network adapter or the virtual adapter of the next-lower driver to which the caller is bound.
Remarks
The Windows CE version of this function always forwards reset requests to the underlying driver without waiting until the driver's internal queues have been cleared.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 2.0 and later | Ndis.h | Ndislib.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
NdisOpenAdapter, ProtocolResetComplete, ProtocolStatus
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.