Metodo IBackgroundCopyError::GetFile (bits.h)

Recupera un puntatore di interfaccia all'oggetto file associato all'errore.

Sintassi

HRESULT GetFile(
  [out] IBackgroundCopyFile **pVal
);

Parametri

[out] pVal

Puntatore all'interfaccia IBackgroundCopyFile i cui metodi vengono utilizzati per determinare i nomi di file locali e remoti associati all'errore. Il parametro ppFile è impostato su NULL se l'errore non è associato al file locale o remoto. Al termine, rilasciare ppFile.

Valore restituito

Questo metodo restituisce i valori HRESULT seguenti.

Codice restituito Descrizione
S_OK
È stato recuperato un puntatore di interfaccia all'oggetto file.
BG_E_FILE_NOT_AVAILABLE
L'errore non è associato a un file locale o remoto. Il parametro ppFile è impostato su NULL.

Requisiti

Requisito Valore
Client minimo supportato Windows XP
Server minimo supportato Windows Server 2003
Piattaforma di destinazione Windows
Intestazione bits.h
Libreria Bits.lib
DLL QmgrPrxy.dll

Vedi anche

IBackgroundCopyError::GetError

IBackgroundCopyError::GetErrorContextDescription

IBackgroundCopyError::GetErrorDescription