Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDeviceServiceMethods::Invoke method

The Invoke method synchronously invokes a method.

Syntax


HRESULT STDMETHODCALLTYPE Invoke(
  [in]      REFGUID               Method,
  [in]      IPortableDeviceValues *pParameters,
  [in, out] IPortableDeviceValues **ppResults
);

Parameters

Method [in]

The method to invoke.

pParameters [in]

A pointer to an IPortableDeviceValues interface that contains the parameters of the invoked method, or NULL to indicate that the method has no parameters.

ppResults [in, out]

The address of a pointer to an IPortableDeviceValues interface that receives the method results, or NULL to ignore the method results.

Return value

If the method succeeds, it returns S_OK. Any other HRESULT value indicates that the call failed.

Remarks

The method invocation is synchronous and will not return until the method has completed. For long-running methods, your application should call the InvokeAsync method instead.

Examples

For an example of how to use this method, see Invoking Service Methods

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported

Header

PortableDeviceAPI.h

IDL

PortableDeviceAPI.idl

See also

Invoking Service Methods
IPortableDeviceServiceMethods Interface

 

 

Community Additions

Show:
© 2017 Microsoft