Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
將 XAsyncBegin 及其提供者回呼包裝在可重複使用的方法中 (與非同步 GDK 函式使用的模式相同),並讓 DoWork 案例保持通用。
HRESULT CustomProviderMethodAsync(XAsyncBlock* async) { // Set up the context for your method. void* context; HRESULT hr = XAsyncBegin(async, context, CustomProviderMethodAsync, __FUNCTION__, [](XAsyncOp op, const XAsyncProviderData* providerData) { // Provider cases are handled here. return S_OK; }); return hr; }
DoWork
這個頁面有幫助嗎?