Difference between revisions of "FS:CreateFile"

From 3dbrew
Jump to navigation Jump to search
m (Fixed mistake in error code)
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Unknown (Always zero?)
+
| Transaction (usually 0)
 
|-
 
|-
 
| 2
 
| 2

Revision as of 06:03, 16 October 2015

Request

Index Word Description
0 Header code [0x08080202]
1 Transaction (usually 0)
2 Archive handle lower word
3 Archive handle upper word
4 File LowPath.Type
5 File LowPath.Size
6 Unknown (Always zero?)
7 Bytes to fill with zeroes in the file
8 Unknown (Always zero?)
9 (File LowPath.Size<<14) | 2
10 File LowPath.Data pointer

Response

Index Word Description
0 Header code
1 Resultcode

Errors

Result code Description
0 Returned on success.
0x82044BE There is already a file or directory in the requested location.
0x86044D2 The created file is too large.