Skip to main content

LoadDriverFirmwareDatabase

(Windows only) Load the driver/firmware metadata database file. Currently, only patch_driver_firmware.dat is accepted.

Syntax​

Method ID​

#define WA_VMOD_LOAD_DRIVER_FIRMWARE_DATABASE 50900

JSON Input Structure​

{
"input": {
"method": 50900,
"input_path": string
}
}

Input Properties​

ParameterTypeDescription
input_pathstringAbsolute path to the driver/firmware database file to load.

JSON Output Structure​

{
"result": {
"method": 50900,
"code": number,
"timing": number,
"timestamp": string,
"loaded_files": [
{
"file_name": string,
"file_path": string,
"type": string,
"version": string,
"published_epoch": string,
"details": {
"<vendor>": [
string,
...
]
}
},
...
]
}
}

Output Properties​

PropertyTypeDescription
result.methodnumberThe method ID that generated this result.
result.codenumberThe result code. See Result Codes.
result.timingnumberThe measured time for the method call in milliseconds.
result.timestampstringThe timestamp in seconds of when the call was made.
result.loaded_filesarray<object>List of loaded data files.
result.loaded_files.file_namestringFilename of the loaded dataset.
result.loaded_files.file_pathstringFull path to the loaded dataset.
result.loaded_files.typestringType of the loaded dataset.
result.loaded_files.versionstringVersion of the loaded dataset.
result.loaded_files.published_epochstringEpoch timestamp of when this dataset was published.
result.loaded_files.detailsobjectMetadata summary for the loaded file.
result.loaded_files.details.<vendor>objectPer-vendor metadata summary (e.g., "dell", "lenovo").
result.loaded_files.details.<vendor>.supported_modelsarray<string>Model names available in this file for the vendor.
result.loaded_files.details.<vendor>.supported_componentsarray<string>OPSWAT-defined component names available for the vendor.
result.loaded_files.details.<vendor>.supported_categoriesarray<string>OPSWAT-defined category names available for the vendor.

Result Codes​

CodeNameDescription
0WAAPI_OKDatabase loaded successfully.
-5WAAPI_ERROR_NOT_INITIALIZEDOESIS Framework has not been initialized yet (for example, because wa_api_setup was not called successfully or the license required by this module is missing).
-13WAAPI_ERROR_DATABASE_MISSINGDatabase file not found at input_path.
-14WAAPI_ERROR_DATABASE_CORRUPTEDDatabase file exists but is corrupted and cannot be loaded.
-20WAAPI_ERROR_INVALID_INPUT_ARGSRequired field is missing or has unexpected type and/or value, or optional field exists but has unexpected type and/or value.
-22WAAPI_ERROR_ACCESS_DENIEDInsufficient permissions to read the database file.
-1WAAPI_ERROR_GENERALUnexpected failure with no more specific error type.
note

Other codes may be returned. See the full Result Codes reference for the complete list.

Remarks​

Error Handling​

The results of this function are determined by the error code returned by the call. If successful, WAAPI_OK or a special success code will be returned. Always check both the function return value and the result.code field in the output JSON.

Examples​

Examples will be added here demonstrating the usage of this method.

See Also​


Last updated: 2026-10-01