FilePathToExoledbFileUrl Method
Topic Last Modified: 2006-06-13
This method converts a file path from the local machine to a "file:" URL supported by the Exchange OLE DB (ExOLEDB) provider.
Applies To
Type Library
EXOLEDB Type Library
DLL Implemented In
EXOLEDB.DLL
Syntax
Function FilePathToExoledbFileUrl( bstrFilePath As String) As String
HRESULT FilePathToExoledbFileUrl
(
BSTR bstrFilePath,
BSTR* pbstrExoledbFileUrl
);
Parameters
- bstrFilePath
A local file path to a resource in the Exchange store.
- pbstrExoledbFileUrl
Pointer to a "file:" URL that can be passed to an ExOLEDB provider.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
In Microsoft® Visual C++® the returned BSTR must be freed with SysFreeString.