The File Transfer Channel object, which is derived from the Channel object, contains manipulation functions specific to file transfer channels.
To obtain a File Transfer Channel object, use INmChannel::QueryInterface with the IID_INmChannelFt interface identifier.
In addition to the INmChannel Interface methods, this interface implements the following:
INmChannelFt Interface |
INmChannelFtNotify Interface |
This interface manages the file exchange between members of a conference.
GetReceiveFileDir |
SendFile |
SetReceiveFileDir |
HRESULT GetReceiveFileDir(
[out] BSTR *pbstrDir);
Retrieves the path to the directory where the received file will be stored.
S_OK | Success. |
E_POINTER | The pbstrDir pointer is invalid. |
E_FAIL | The operation failed, or internal resources are not available. |
Back to INmChannelFt Interface
HRESULT SendFile(
[out] INmFt **ppFt,
[in] INmMember *pMember,
[in] BSTR bstrFile,
[in] ULONG uOptions);
Sends a file through the channel.
S_OK | Success. |
E_POINTER | ppFt is an invalid pointer. |
E_INVALIDARG | The bstrFile string is invalid, or uOptions contains an invalid option. |
E_FAIL | The specified file was not sent, the specified file does not exist, or internal resources are not available. |
E_OUTOFMEMORY | Memory could not be allocated to service the request. |
Back to INmChannelFt Interface
HRESULT SetReceiveFileDir(
[in] BSTR bstrDir);
Sets the path to the directory where the received file will be stored on the local computer.
S_OK | Success. |
E_INVALIDARG | The bstrDir string is invalid. |
E_FAIL | The operation failed, or internal resources are not available. |
Back to INmChannelFt Interface
This is an event notification sink interface for the INmChannelFt interface. The method in this interface is called by the File Transfer Channel object when a specific event occurs.
This event sink method should be defined and implemented by the client application to respond to notifications from a File Transfer Channel object. The INmChannelFtNotify::FtUpdate method is notified when a change in the file transfer has occurred. The client application implementation of this method could provide the user with a display that indicates when the transfer is started, offered, canceled, or any of the other possible states.
FtUpdate |
MemberChanged |
NmUI |
HRESULT FtUpdate(
[in] CONFN uNotify,
[in] INmFt *pFt);
Receives file transfer progress notifications.
CONFN_FT_CANCELED | A file transfer has been canceled. |
CONFN_FT_COMPLETE | A file transfer is complete (this is the final notification for a given file transfer). |
CONFN_FT_OFFERED | A file is being offered (reserved for future use). |
CONFN_FT_PROGRESS | A file transfer has made some progress (applications should update their user interface). |
CONFN_FT_STARTED | A file transfer has started (this is the first notification for a given transfer). |
CONFN_FT_UI | Display the user interface for a file transfer (reserved for future use). |
Back to INmChannelFtNotify Interface
HRESULT MemberChanged(
[in] NM_MEMBER_NOTIFY uNotify,
[in] INmMember *pMember);
Receives notification that a member of the File Transfer channel was added, removed, or updated. This method is inherited from INmChannelNotify.
NM_MEMBER_ADDED | A member was added to the conference. |
NM_MEMBER_REMOVED | A member was removed from the conference. |
NM_MEMBER_UPDATED | Information for a conference member was updated. |
Back to INmChannelFtNotify Interface
HRESULT NmUI(
[in] CONFN uNotify);
Receives event notification when a channel change occurs. Only the application in charge (initialized with NM_INIT_CONTROL) of the NetMeeting user interface will receive these notifications. This method is inherited from INmChannelNotify.
Back to INmChannelFtNotify Interface
Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.