xbtp.dll: session open + connection dispatcher (17 exports) #1

Open
opened 2026-11-26 06:06:58 +00:00 by github-bot · 1 comment
Owner

@⁠omonkeyz on GitHub · 2026-11-21 16:52 UTC · original

Crate: crates/compat/xbtp

Missing exports: XbtpOpenSession / XbtpOpenSession2 / XbtpOpenSessionEx / XbtpOpenSessionEx2, XbtpOpenPipeSession (both C++ overloads), XbtpOpenSessionInternal, XbtpCompleteSessionSetupInternal, XbtpStartDispatcher / XbtpStartDispatcherEx, XbtpWrapDispatcher and the XbtpConnectionDispatcher class (ctor/dtor, Initialize, AddPipeEndpoint, Run, Shutdown).

Notes: Transport must stay in-process: src/link_dev.rs already emulates the \??\xbtplink device (no TCP). Dispatcher contract the xtf* handlers rely on (console xbtp.dll 0x207bc): Invoke(handler, session, received, reply); session vtable +0x18 SendMoreMessage, +0x28 ReceiveMoreMessage (E_PENDING = success), +0x30 GetMessageReceivedEvent. Unblocks the xtfpix client rows.

The export rows are marked missing in each crate's exports.txt. Read CONTRIBUTING.md first: console behaviour, tests, no fake success, no game files or binaries in the PR. Comment here to claim it so work isn't duplicated.

**@⁠omonkeyz** on GitHub · 2026-11-21 16:52 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/1) **Crate:** `crates/compat/xbtp` **Missing exports:** XbtpOpenSession / XbtpOpenSession2 / XbtpOpenSessionEx / XbtpOpenSessionEx2, XbtpOpenPipeSession (both C++ overloads), XbtpOpenSessionInternal, XbtpCompleteSessionSetupInternal, XbtpStartDispatcher / XbtpStartDispatcherEx, XbtpWrapDispatcher and the XbtpConnectionDispatcher class (ctor/dtor, Initialize, AddPipeEndpoint, Run, Shutdown). **Notes:** Transport must stay in-process: `src/link_dev.rs` already emulates the `\??\xbtplink` device (no TCP). Dispatcher contract the xtf* handlers rely on (console xbtp.dll 0x207bc): Invoke(handler, session, received, reply); session vtable +0x18 SendMoreMessage, +0x28 ReceiveMoreMessage (E_PENDING = success), +0x30 GetMessageReceivedEvent. Unblocks the xtfpix client rows. The export rows are marked `missing` in each crate's `exports.txt`. Read [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) first: console behaviour, tests, no fake success, no game files or binaries in the PR. Comment here to claim it so work isn't duplicated.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:06:58 +00:00
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-23 16:43 UTC · original

I found a COM error-handling defect in the XBTP client session on main f89e4106fe: unsupported interface queries returned E_NOINTERFACE without clearing the output pointer.

The attached patch clears rejected outputs and returns E_POINTER for a null output address. Three regression tests cover failure behavior and successful reference counting.

120 unit tests and five transport integration tests passed. Cargo check and the PR gate passed. No console-oracle or title validation was performed.

issue-1-session-queryinterface.patch
issue-1-regression-before.txt
issue-1-regression-after.txt
issue-1-test-results.txt
issue-1-validation-notes.txt

**@⁠BaggyALPHA** on GitHub · 2026-11-23 16:43 UTC · [original](https://github.com/omonkeyz/xbox-emulator/issues/1#issuecomment-7107580470) I found a COM error-handling defect in the XBTP client session on main f89e4106fe8a1728515afa34ceb5097132cadcda: unsupported interface queries returned E_NOINTERFACE without clearing the output pointer. The attached patch clears rejected outputs and returns E_POINTER for a null output address. Three regression tests cover failure behavior and successful reference counting. 120 unit tests and five transport integration tests passed. Cargo check and the PR gate passed. No console-oracle or title validation was performed. [issue-1-session-queryinterface.patch](https://github.com/user-attachments/files/35287011/issue-1-session-queryinterface.patch) [issue-1-regression-before.txt](https://github.com/user-attachments/files/35287009/issue-1-regression-before.txt) [issue-1-regression-after.txt](https://github.com/user-attachments/files/35287013/issue-1-regression-after.txt) [issue-1-test-results.txt](https://github.com/user-attachments/files/35287012/issue-1-test-results.txt) [issue-1-validation-notes.txt](https://github.com/user-attachments/files/35287010/issue-1-validation-notes.txt)
This discussion has been locked. Commenting is limited to contributors.
No description provided.