> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblHttpCallGetPlatformNetworkErrorMessage

> XblHttpCallGetPlatformNetworkErrorMessage

# XblHttpCallGetPlatformNetworkErrorMessage

取得 HTTP 呼叫的平台網路錯誤訊息。

## 語法

```cpp theme={null}
HRESULT XblHttpCallGetPlatformNetworkErrorMessage(  
         XblHttpCallHandle call,  
         const char** platformNetworkErrorMessage  
)  
```

### 參數

*call*   \_In\_\
類型：[XblHttpCallHandle](/zh-TW/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

HTTP 呼叫的控制代碼。

*platformNetworkErrorMessage*   \_Out\_\
類型：char\*\*

HTTP 呼叫的平台特定網路錯誤訊息，用於追蹤/偵錯。

### 傳回值

類型：HRESULT

此 API 作業的結果碼。可能的值為 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 備註

只有在呼叫 [XblHttpCallPerformAsync](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) 且 HTTP 工作完成後，才能呼叫此函式。

## 需求

**標頭：** http\_call\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[http\_call\_c](/zh-TW/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [XblHttpCallGetPlatformNetworkErrorMessage](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetplatformnetworkerrormessage.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [HCHttpCallResponseGetPlatformNetworkErrorMessage](/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetplatformnetworkerrormessage.md)
- [HCHttpCallResponseSetPlatformNetworkErrorMessage](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage.md)
- [XblHttpCallGetNetworkErrorCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnetworkerrorcode.md)
