Difference between revisions of "FS:OpenFile"

From 3dbrew
Jump to navigation Jump to search
m (Add categories)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Request=
 
=Request=
{{IPC/Request}}
+
{{IPC/Request|Request}}
 
{{IPC/RequestHeader|0x0802|7|2}}
 
{{IPC/RequestHeader|0x0802|7|2}}
 
{{IPC/RequestEntry|Transaction (usually 0)}}
 
{{IPC/RequestEntry|Transaction (usually 0)}}
Line 8: Line 8:
 
{{IPC/RequestEntry|[[Filesystem_services#OpenFlags|Open Flags]]}}
 
{{IPC/RequestEntry|[[Filesystem_services#OpenFlags|Open Flags]]}}
 
{{IPC/RequestEntry|[[Filesystem_services#Attributes|Attributes]] (usually 0)}}
 
{{IPC/RequestEntry|[[Filesystem_services#Attributes|Attributes]] (usually 0)}}
{{IPC/RequestEntry|(PathSize << 14)  <nowiki>|</nowiki> 2}}
+
{{IPC/TranslateStaticBuffer|Path Data Pointer|0}}
{{IPC/RequestEntry|Path Data Pointer}}
 
 
{{IPC/RequestEnd}}
 
{{IPC/RequestEnd}}
  
 
=Response=
 
=Response=
{{IPC/Request}}
+
{{IPC/Request|Response}}
{{IPC/RequestEntry|Header code}}
+
{{IPC/RequestHeader|0x0802|1|2}}
 
{{IPC/RequestEntry|Result code}}
 
{{IPC/RequestEntry|Result code}}
 
{{IPC/MoveHandle|1}}
 
{{IPC/MoveHandle|1}}
{{IPC/RequestEntry|File client session handle}}
+
{{IPC/MoveHandleEntry|File client session handle}}
 
{{IPC/RequestEnd}}
 
{{IPC/RequestEnd}}
 +
 +
[[Category:fs:USER commands]]
 +
[[Category:fs:LDR commands]]

Latest revision as of 11:54, 20 September 2024

Request[edit]

Request Word Description
0
Header 0x080201C2 Cmd 0x0802 Param 7 Xlat 2
1 Transaction (usually 0)
2-3 u64, Archive Handle
4 Path Type
5 Path Size (including null-terminator)
6 Open Flags
7 Attributes (usually 0)
8 Descriptor for static buffer (id 0)
9 Path Data Pointer

Response[edit]

Response Word Description
0
Header 0x08020042 Cmd 0x0802 Param 1 Xlat 2
1 Result code
2 Descriptor for moving 1 handle
3 File client session handle