Changes

Convert to IPC templates
Line 1: Line 1:  
=Request=
 
=Request=
{| class="wikitable" border="1"
+
{{IPC/Request|Request}}
|-
+
{{IPC/RequestHeader|0x0003|4|0}}
!  Index Word
+
{{IPC/RequestEntryRange|2|8-byte UTF-8 service name}}
!  Description
+
{{IPC/RequestEntry|Name length}}
|-
+
{{IPC/RequestEntry|Maximum sessions}}
| 0
+
{{IPC/RequestEnd}}
| Header code [0x00030100]
  −
|-
  −
| 1-2
  −
| 8-byte UTF-8 service name
  −
|-
  −
| 3
  −
| Name length
  −
|-
  −
| 4
  −
| Maximum sessions
  −
|}
      
=Response=
 
=Response=
{| class="wikitable" border="1"
+
{{IPC/Request|Response}}
|-
+
{{IPC/RequestHeader|0x0003|1|2}}
!  Index Word
+
{{IPC/RequestEntry|Result code}}
!  Description
+
{{IPC/MoveHandle|1}}
|-
+
{{IPC/MoveHandleEntry|<code>Handle<[[KServerPort]]></code> which will receive incoming connections to the service.}}
| 0
+
{{IPC/RequestEnd}}
| Header code
  −
|-
  −
| 1
  −
| Result code
  −
|-
  −
| 3
  −
| Handle to [[KServerPort]] which will receive incoming connections to the service.
  −
|}
      
This function registers a new service which can be accessed using [[SRV:GetServiceHandle]]. The service manager will create a new client-server port pair, registering the [[KPort|client endpoint]] under the given name, and returning the [[KServerPort|server endpoint]] for the service to listen on for incoming connections.
 
This function registers a new service which can be accessed using [[SRV:GetServiceHandle]]. The service manager will create a new client-server port pair, registering the [[KPort|client endpoint]] under the given name, and returning the [[KServerPort|server endpoint]] for the service to listen on for incoming connections.
157

edits