WSDUriDecode 函式 (wsdutil.h)
根據RFC2396中的規則譯碼 URI。
語法
HRESULT WSDUriDecode(
[in] LPCWSTR source,
[in] DWORD cchSource,
[out] LPWSTR *destOut,
[out, optional] DWORD *cchDestOut
);
參數
[in] source
包含要譯碼的 URI。
[in] cchSource
以字元指定 來源 的長度。
[out] destOut
包含譯碼 URI 的字串指標。 如果 destOut 不是 NULL,則呼叫應用程式應該呼叫 WSDFreeLinkedMemory 來釋放配置的字串。
[out, optional] cchDestOut
以字元指定 destOut 的長度。
傳回值
此函式可以傳回下列其中一個值。
傳回碼 | 描述 |
---|---|
|
函式已順利完成。 |
|
source 為 NULL 或 cchSource 為 0。 |
|
來源字元的長度超過 WSD_MAX_TEXT_LENGTH (8192) 。 |
|
destOut 為 NULL。 |
備註
WSDUriDecode 會譯碼來源中的任何編碼字元。 這些字元會以百分比符號 (%) 後面接著兩個十六進位數位來識別。 WSDUriDecode 會譯碼 多位元組位元元的單一位元組元件,並將其轉換成 destOut 中的寬字元表示法。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows 7 [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2008 R2 [僅限桌面應用程式] |
目標平台 | Windows |
標頭 | wsdutil.h (包含 Wsdapi.h) |
程式庫 | Wsdapi.lib |
Dll | Wsdapi.dll |