Difference between revisions of "FS:CreateFile"

From 3dbrew
Jump to navigation Jump to search
m (rewording)
(Added error codes to CreateFile)
Line 50: Line 50:
 
| 1
 
| 1
 
| Resultcode
 
| Resultcode
 +
|}
 +
 +
=Errors=
 +
{| class="wikitable" border="1"
 +
|-
 +
! Result code !! Description
 +
|-
 +
| 0 || Returned on success.
 +
|-
 +
| 0x86044BE || There is already a file or directory in the requested location.
 +
|-
 +
| 0x86044D2 || The created file is too large.
 
|}
 
|}

Revision as of 05:36, 14 December 2014

Request

Index Word Description
0 Header code [0x08080202]
1 Unknown (Always zero?)
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.
0x86044BE There is already a file or directory in the requested location.
0x86044D2 The created file is too large.