Line 33:
Line 33:
|<code>void IMGetTimeBeforeAPD(uint32_t *apd_secs)</code>
|<code>void IMGetTimeBeforeAPD(uint32_t *apd_secs)</code>
|Returns the amount of seconds that are left until the WiiU powers down, if the Auto Power-Down setting is True. apd_secs is a pointer to the variable that stores the amount of seconds.
|Returns the amount of seconds that are left until the WiiU powers down, if the Auto Power-Down setting is True. apd_secs is a pointer to the variable that stores the amount of seconds.
+
|}
+
===OSDriver===
+
{| class="wikitable"
+
!Name
+
!Prototype
+
!Description
+
|-
+
|OSDriver_Register
+
|<code>uint32_t OSDriver_Register(char *drv_name, size_t name_len, void *buf1, void *buf2)</code>
+
|Will register an OSDriver entity with the given name and bufs
+
|-
+
|OSDriver_Deregister
+
|<code>uint32_t OSDriver_Deregister(char *drv_name, size_t name_len)</code>
+
|Will try to find a OSDriver with the given name (and length because implementing a strlen was too hard), and deregister him
+
|-
+
|OSDriver_CopyToSaveArea
+
|<code>uint32_t OSDriver_CopyToSaveArea(char *drv_name, size_t name_len, void *in_buf, size_t buf_size)</code>
+
|Will copy buf to an OSDriver "safe" save area [0x44/4]
+
|-
+
|OSDriver_CopyFromSaveArea
+
|<code>uint32_t OSDriver_CopyFromSaveArea(char *drv_name, size_t name_len, void *out_buf, size_t buf_size)</code>
+
|Will copy data from the OSDriver save area to an user controlled buffer
|}
|}
===Memory===
===Memory===
Line 898:
Line 920:
} OSCalendarTime;
} OSCalendarTime;
</syntaxhighlight>
</syntaxhighlight>
+
+
===OSDriver===
+
<syntaxhighlight lang="C">
+
#define OSDRIVER_SIZE 0x4c
+
+
typedef struct OSDriver {
+
+
char drv_name[0x40]; // 0x00 - 0x40
+
uint32_t unknown; // 0x40 - 0x44
+
uint32_t *save_area; // 0x44 - 0x48
+
struct OSDriver *next; // 0x48 - 0x4c
+
+
} OSDriver;
+
</syntaxhighlight>
+
+
I have no idea if registering an OSDriver return his struct pointer, i can't test it, my Wii U is bricked [[User:NexoCube|NexoCube]] ([[User talk:NexoCube|talk]]) 11:56, 19 March 2017 (CET)
=== Screen ===
=== Screen ===