Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Retrieves the protocol used to transfer the file. The remote file name identifies the protocol to use to transfer the file.
Syntax
HRESULT GetProtocol(
[out] LPWSTR *pProtocol
);
Parameters
[out] pProtocol
Null-terminated string that contains the protocol used to transfer the file. The string contains "http" for the HTTP protocol and "file" for the SMB protocol. The ppProtocol parameter is set to NULL if the error is not related to the transfer protocol. Call the CoTaskMemFree function to free ppProtocol when done.
Return value
This method returns the following HRESULT values, as well as others.
| Return code | Description |
|---|---|
|
Successfully retrieved the remote file protocol. |
|
The error is not associated with the remote file transfer protocol. The ppProtocol parameter is set to NULL. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP |
| Minimum supported server | Windows Server 2003 |
| Target Platform | Windows |
| Header | bits.h |
| Library | Bits.lib |
| DLL | QmgrPrxy.dll |