Exportieren (0) Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

IBackgroundCopyError::GetProtocol method

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 *ppProtocol
);

Parameters

ppProtocol [out]

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 codeDescription
S_OK

Successfully retrieved the remote file protocol.

BG_E_PROTOCOL_NOT_AVAILABLE

The error is not associated with the remote file transfer protocol. The ppProtocol parameter is set to NULL.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Bits.h

IDL

Bits.idl

Library

Bits.lib

DLL

QmgrPrxy.dll

IID

IID_IBackgroundCopyError is defined as 19C613A0-FCB8-4F28-81AE-897C3D078F81

See also

IBackgroundCopyError

 

 

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2015 Microsoft