pub unsafe extern "C" fn OH_Print_QueryPrinterList(
printerIdList: *mut Print_StringList,
) -> Print_ErrorCodeAvailable on crate features
print and api-12 only.Expand description
This API queries for a list of added printers.
ohos.permission.PRINT
§Arguments
printerIdList- A pointer to aPrint_StringListinstance to store the queried printer id list.
§Returns
- Returns
Print_ErrorCodeif the execution is successful. [PRINT_ERROR_NO_PERMISSION] The permissionohos.permission.PRINTis needed. [PRINT_ERROR_INVALID_PARAMETER] printerIdList is NULL. [PRINT_ERROR_INVALID_PRINTER] Unable to query any connected printers. [PRINT_ERROR_GENERIC_FAILURE] Unable to copy the printer id list.
Required System Capabilities: SystemCapability.Print.PrintFramework
Available since API-level: 12