Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Disables In-Band-Interrupts (IBIs) for a specific WinI3C-Target.
WinI3CDisableIbis is a Library-managed WinI3C API (the recommended way to use WinI3C). For an overlapped equivalent that uses a client-supplied file handle, see WinI3CDisableIbisWithFileHandle.
Note: Library-managed and non-library-managed APIs cannot be used simultaneously by a client on a single WinI3C-Target.
Syntax
_Must_inspect_result_
HRESULT WINAPI WinI3CDisableIbis(
_In_ WinI3CTarget target);
Parameters
[in] target
The WinI3CTarget to disable IBIs for.
The handle shall have been created by WinI3CInitializeTarget.
Return value
On success this function returns S_OK.
On failure this function returns an appropriate HRESULT error code, including the following.
| Return code | Description |
|---|---|
| S_OK | Successfully disabled IBIs for the WinI3C-Target. |
| E_INVALIDARG | One or more parameters are invalid, or WinI3CDisableIbis was called again before WinI3CEnableIbis or WinI3CEnableIbisWithAutoCommandRead |
| HRESULT_FROM_WIN32(ERROR_DEVICE_NOT_CONNECTED) | The WinI3C-Target is not connected. Destroy the handle with WinI3CRelease. |
| HRESULT_FROM_WIN32(ERROR_DEVICE_HARDWARE_ERROR) | A fatal hardware error occurred. Destroy the handle with WinI3CRelease. |
Remarks
IBIs are disabled by default.
IBIs shall have been previously enabled with WinI3CEnableIbis or WinI3CEnableIbisWithAutoCommandRead.
Vendors understand the capabilities of their devices, so there is no provided mechanism to determine if IBIs are supported.
If the WINI3CIBIRECEIVEDCALLBACK is currently executing, this call is blocked until the callback returns. Any IBIs that the WinI3C-Target has sent but that have not yet been dispatched to the client may be discarded.
If the WinI3C-Target is destroyed with WinI3CRelease while IBIs are still enabled, IBIs are disabled automatically.
If the client unexpectedly terminates before disabling IBIs, IBIs are disabled automatically.
This function is thread-safe.
Example
Disables IBIs for target.
#include <wini3c.h>
void main()
{
...
if (FAILED(WinI3CDisableIbis(target)))
{
// Handle failure.
}
...
}
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 11 25H2 October update (build 26200) |
| Target Platform | Windows |
| Header | wini3c.h |
| DLL | wini3c.dll |