next up previous contents
Next: C. Troubleshooting and Support Up: B. API Reference Previous: B.8 User-Mode Utility Functions   Contents

Subsections


B.9 WinDriver Status Codes


B.9.1 Introduction

Most of the WinDriver functions return a status code, where zero (WD_STATUS_SUCCESS) means success and a non-zero value means failure.
The Stat2Str() functions can be used to retrieve the status description string for a given status code. The status codes and their descriptive strings are listed below.


B.9.2 Status Codes Returned by WinDriver

Status Code Description
WD_STATUS_SUCCESS Success
WD_STATUS_INVALID_WD_HANDLE Invalid WinDriver handle
WD_WINDRIVER_STATUS_ERROR Error
WD_INVALID_HANDLE Invalid handle
WD_INVALID_PIPE_NUMBER Invalid pipe number
WD_READ_WRITE_CONFLICT Conflict between read and write operations
WD_ZERO_PACKET_SIZE Packet size is zero
WD_INSUFFICIENT_RESOURCES Insufficient resources
WD_UNKNOWN_PIPE_TYPE Unknown pipe type
WD_SYSTEM_INTERNAL_ERROR Internal system error
WD_DATA_MISMATCH Data mismatch
WD_NO_LICENSE No valid license
WD_NOT_IMPLEMENTED Function not implemented
WD_KERPLUG_FAILURE Kernel PlugIn failure
WD_FAILED_ENABLING_INTERRUPT Failed enabling interrupt
WD_INTERRUPT_NOT_ENABLED Interrupt not enabled
WD_RESOURCE_OVERLAP Resource overlap
WD_DEVICE_NOT_FOUND Device not found
WD_WRONG_UNIQUE_ID Wrong unique ID
WD_OPERATION_ALREADY_DONE Operation already done
WD_SET_CONFIGURATION_FAILED Set configuration operation failed
WD_CANT_OBTAIN_PDO Cannot obtain PDO
WD_TIME_OUT_EXPIRED Timeout expired
WD_IRP_CANCELED IRP operation cancelled
WD_FAILED_USER_MAPPING Failed to map in user space
WD_FAILED_KERNEL_MAPPING Failed to map in kernel space
WD_NO_RESOURCES_ON_DEVICE No resources on the device
WD_NO_EVENTS No events
WD_INVALID_PARAMETER Invalid parameter
WD_INCORRECT_VERSION Incorrect WinDriver version installed
WD_TRY_AGAIN Try again
WD_INVALID_IOCTL Received an invalid IOCTL