Call()
This function is declared in the coresrv/syscalls.h
file.
Retcode Call(Handle handle, const SMsgHdr *msgOut, SMsgHdr *msgIn);
This function sends an IPC request to the server process and locks the calling thread until an IPC response or error is received. This function is called by the client process.
Parameters:
handle
is the client IPC handle of the utilized channel.msgOut
is the buffer containing the IPC request.msgIn
is the buffer for the IPC response.
Returned value:
- rcOk means that the exchange of IPC messages was successfully completed.
- rcInvalidArgument means that the IPC request and/or IPC response has an invalid structure.
- rcSecurityDisallow means that the Kaspersky Security Module prohibits forwarding of the IPC request or IPC response.
- rcNotConnected means that the server IPC handle of the channel was not found.
Other return codes are available.
Page topRecv()
This function is declared in the coresrv/syscalls.h
file.
Retcode Recv(Handle handle, SMsgHdr *msgIn);
This function locks the calling thread until an IPC request is received. This function is called by the server process.
Parameters:
handle
is the server IPC handle of the utilized channel.msgIn
is the buffer for an IPC request.
Returned value:
- rcOk means that an IPC request was successfully received.
- rcInvalidArgument means that the IPC request has an invalid structure.
- rcSecurityDisallow means that IPC request forwarding is prohibited by the Kaspersky Security Module.
Other return codes are available.
Page topReply()
This function is declared in the coresrv/syscalls.h
file.
Retcode Reply(Handle handle, const SMsgHdr *msgOut);
This function sends an IPC response and locks the calling thread until the client receives a response or until an error is received. This function is called by the server process.
Parameters:
handle
is the server IPC handle of the utilized channel.msgOut
is the buffer containing an IPC response.
Returned value:
- rcOk means that an IPC response was successfully received by the client.
- rcInvalidArgument means that the IPC response has an invalid structure.
- rcSecurityDisallow means that IPC response forwarding is prohibited by the Kaspersky Security Module.
Other return codes are available.
Page top