Skip to content

Latest commit

 

History

History
126 lines (102 loc) · 4.02 KB

nf-mbnapi-imbndeviceservice-querycommand.md

File metadata and controls

126 lines (102 loc) · 4.02 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mbnapi.IMbnDeviceService.QueryCommand
IMbnDeviceService::QueryCommand (mbnapi.h)
Sends a QUERY control command to the device service of a Mobile Broadband device.
IMbnDeviceService interface [Microsoft Broadband Networks]
QueryCommand method
IMbnDeviceService.QueryCommand
IMbnDeviceService::QueryCommand
QueryCommand
QueryCommand method [Microsoft Broadband Networks]
QueryCommand method [Microsoft Broadband Networks]
IMbnDeviceService interface
mbn.imbndeviceservice_querycommand
mbnapi/IMbnDeviceService::QueryCommand
mbn\imbndeviceservice_querycommand.htm
mbn
EA68206E-5656-4C83-AFB0-26E7F3692DE2
12/05/2018
IMbnDeviceService interface [Microsoft Broadband Networks],QueryCommand method, IMbnDeviceService.QueryCommand, IMbnDeviceService::QueryCommand, QueryCommand, QueryCommand method [Microsoft Broadband Networks], QueryCommand method [Microsoft Broadband Networks],IMbnDeviceService interface, mbn.imbndeviceservice_querycommand, mbnapi/IMbnDeviceService::QueryCommand
mbnapi.h
Windows
Windows 8 [desktop apps \| UWP apps]
None supported
Mbnapi.idl
Windows
19H1
IMbnDeviceService::QueryCommand
mbnapi/IMbnDeviceService::QueryCommand
c++
APIRef
kbSyntax
COM
mbnapi.h
IMbnDeviceService.QueryCommand

IMbnDeviceService::QueryCommand

-description

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

Sends a QUERY control command to the device service of a Mobile Broadband device.

-parameters

-param commandID [in]

An identifier for the command.

-param deviceServiceData [in]

A byte array that is passed in to the device.

-param requestID [out]

A unique request ID assigned by the Mobile Broadband service to identify this request.

-returns

The method can return one of the following values.

Return code Description
S_OK
The method completed successfully.
E_ACCESSDENIED
This device service command is not allowed for calling process privileges.
Other
An error was encountered when executing this method.

-remarks

QueryCommand exists to implement vendor-specific device service functionality which is not otherwise covered in the Mobile Broadband API. The command session on a device service must be opened before the application can call QueryCommand.

The Mobile Broadband service will issue a QUERY request to the device. deviceServiceData will be copied byte-by-byte into the data buffer passed in to the request. This data buffer must not be more than MaxCommandSize bytes.

This is an asynchronous operation and QueryCommand will return immediately. On completion of the operation, the Mobile Broadband service will call the OnQueryCommandComplete method of the IMbnDeviceServicesEvents interface.

-see-also

IMbnDeviceService