FS:OpenFileDirectly: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x080201C2] |- | 1 | Usually zero? |- | 2 | Archive idcode |- |..."
 
Neobrain (talk | contribs)
 
(6 intermediate revisions by 4 users not shown)
Line 6: Line 6:
|-
|-
| 0
| 0
| Header code [0x080201C2]
| Header code [0x08030204]
|-
|-
| 1
| 1
| Usually zero?
| Transaction (usually 0)
|-
|-
| 2
| 2
| [[FS:OpenArchive|Archive]] idcode
| [[Filesystem_services#ArchiveId|Archive ID]]
|-
|-
| 3
| 3
| Archive LowPath.Type
| [[Filesystem_services#PathType|Archive Path Type]]
|-
|-
| 4
| 4
| Archive LowPath.Size
| Archive Path Size (including null-terminator)
|-
|-
| 5
| 5
| [[FS:OpenFile|File]] LowPath.Type
| [[Filesystem_services#PathType|File Path Type]]
|-
|-
| 6
| 6
| File LowPath.Size
| File Path Size (including null-terminator)
|-
|-
| 7
| 7
| [[FS:OpenFile#Openflags|Openflags]]
| [[Filesystem_services#OpenFlags|Open Flags]]
|-
|-
| 8
| 8
| Usually zero?
| [[Filesystem_services#Attributes|Attributes]] (usually 0)
|-
|-
| 9
| 9
| (Archive LowPath.Size<<14)  <nowiki>|</nowiki> 0x802
| (ArchivePathSize << 14)  <nowiki>|</nowiki> 0x802
|-
|-
| 10
| 10
| Archive LowPath.Data pointer
| Archive Path Data Pointer
|-
|-
| 11
| 11
| (File LowPath.Size<<14)  <nowiki>|</nowiki> 2
| (FilePathSize << 14)  <nowiki>|</nowiki> 2
|-
|-
| 12
| 12
| File LowPath.Data pointer
| File Path Data Pointer
|}
|}


Line 55: Line 55:
|-
|-
| 1
| 1
| Resultcode
| Result code
|-
| 2
| N/A
|-
|-
| 3
| 3
| File handle
| File client session handle
|}
|}

Latest revision as of 23:35, 5 September 2016

Request

Index Word Description
0 Header code [0x08030204]
1 Transaction (usually 0)
2 Archive ID
3 Archive Path Type
4 Archive Path Size (including null-terminator)
5 File Path Type
6 File Path Size (including null-terminator)
7 Open Flags
8 Attributes (usually 0)
9 (ArchivePathSize << 14) | 0x802
10 Archive Path Data Pointer
11 (FilePathSize << 14) | 2
12 File Path Data Pointer

Response

Index Word Description
0 Header code
1 Result code
2 N/A
3 File client session handle