当前仅显示指定条件回帖 [ 展开查看全部 ]
文件名称:
IServerProxy.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
4.89 KB
下载地址:
文本预览:
# IServerProxy
## **Overview**
**Related Modules:**
[Registry](Registry.md)
**Description:**
Defines the base class of the server proxy object.
When the server provides cross-process system capabilities, it uses **INHERIT\_SERVER\_IPROXY** to define the server proxy.
## **Summary**
## Data Fields
## **Details**
## **Field Documentation**
## INHERIT\_IUNKNOWN
```
IServerProxy::INHERIT_IUNKNOWN
```
**Description:**
This class inherits from **[IUnknown](IUnknown.md)**.
## Invoke
```
int32(* IServerProxy::Invoke) ([IServerProxy](IServerProxy.md) *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply)
```
**Description:**
Unmarshals the IPC message received by the server.
This function is implemented by developers and called by the system. This function runs in the message processing thread of the service. Do not block the message processing thread; otherwise, the function may fail to be executed.
**Parameters:**
**Returns:**
Returns **EC\_SUCCESS** if the unmarshalling is successful; returns other error codes if the unmarshalling fails.
## **Overview**
**Related Modules:**
[Registry](Registry.md)
**Description:**
Defines the base class of the server proxy object.
When the server provides cross-process system capabilities, it uses **INHERIT\_SERVER\_IPROXY** to define the server proxy.
## **Summary**
## Data Fields
Invoke )(IServerProxy *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply) | Unmarshals the IPC message received by the server. |
## **Details**
## **Field Documentation**
## INHERIT\_IUNKNOWN
```
IServerProxy::INHERIT_IUNKNOWN
```
**Description:**
This class inherits from **[IUnknown](IUnknown.md)**.
## Invoke
```
int32(* IServerProxy::Invoke) ([IServerProxy](IServerProxy.md) *iProxy, int funcId, void *origin, IpcIo *req, IpcIo *reply)
```
**Description:**
Unmarshals the IPC message received by the server.
This function is implemented by developers and called by the system. This function runs in the message processing thread of the service. Do not block the message processing thread; otherwise, the function may fail to be executed.
**Parameters:**
Proxy | Indicates the pointer to the server proxy object. |
funcId | Indicates the ID of the server function to be invoked by the client. |
origin | Indicates the original IPC message, from which the header information can be obtained. |
req | ipc Indicates the message body, from which data can be obtained. |
reply | Indicates the output parameter, which is used to respond to the message. The value can contain a maximum of five objects and 200 bytes. |
**Returns:**
Returns **EC\_SUCCESS** if the unmarshalling is successful; returns other error codes if the unmarshalling fails.
点赞
回复
X