mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
XAM_OVERLAPPED
This commit is contained in:
parent
997de209ec
commit
993c646e91
|
|
@ -191,6 +191,17 @@ enum X_FILE_INFORMATION_CLASS {
|
||||||
XFileMaximumInformation
|
XFileMaximumInformation
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Known as XOVERLAPPED to 360 code.
|
||||||
|
struct XAM_OVERLAPPED {
|
||||||
|
xe::be<uint32_t> result; // 0x0
|
||||||
|
xe::be<uint32_t> length; // 0x4
|
||||||
|
xe::be<uint32_t> context; // 0x8
|
||||||
|
xe::be<uint32_t> event; // 0xC
|
||||||
|
xe::be<uint32_t> completion_routine; // 0x10
|
||||||
|
xe::be<uint32_t> completion_context; // 0x14
|
||||||
|
xe::be<uint32_t> extended_error; // 0x18
|
||||||
|
};
|
||||||
|
|
||||||
inline uint32_t XOverlappedGetResult(void* ptr) {
|
inline uint32_t XOverlappedGetResult(void* ptr) {
|
||||||
auto p = reinterpret_cast<uint32_t*>(ptr);
|
auto p = reinterpret_cast<uint32_t*>(ptr);
|
||||||
return xe::load_and_swap<uint32_t>(&p[0]);
|
return xe::load_and_swap<uint32_t>(&p[0]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue