File Object


The File object manages information about a file being transferred.

The File object is instantiated with the INmChannelFt::SendFile method.

INmFt Interface

Up ArrowBack to COM Object Reference

INmFt Interface

This interface defines the file that will be transferred, including its transfer state, size, and owner.

Cancel
GetBytesTransferred
GetMember
GetName
GetSize
GetState
IsIncoming

Up ArrowBack to File Object

INmFt::Cancel

HRESULT Cancel(void);

Cancels the file transfer operation.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

INmFt::GetBytesTransferred

HRESULT GetBytesTransferred(
[out] ULONG *puBytes);

Retrieves the current number of bytes transferred.

puBytes
Pointer to a ULONG that contains the number of bytes transferred.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

INmFt::GetMember

HRESULT GetMember(
[out] INmMember **ppMember);

Retrieves a pointer to information about the remote member of the file transfer based on one of the following conditions:

ppMember
Pointer to a pointer to the INmMember Interface on the Member object involved with the file transfer.

The Member object must be released once the application is through with it.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

INmFt::GetName

HRESULT GetName(
[out] BSTR *pbstrName);

Retrieves the string for the full path of the file.

pbstrName
Pointer to a BSTR for the full path of the file.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

INmFt::GetSize

HRESULT GetSize(
[out] ULONG *puBytes);

Retrieves the size of the file, in bytes.

puBytes
Pointer to a ULONG that contains the size of the file, in bytes.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

INmFt::GetState

HRESULT GetState(
[out] NM_FT_STATE *uState);

Retrieves the state of the file being transferred.

uState
Pointer to the state of the file being transferred. Possible constants include:
NM_FT_COMPLETE The file transfer is complete.
NM_FT_INVALID The file transfer is not valid.
NM_FT_RECEIVING The file transfer is currently being received.
NM_FT_SENDING The file transfer is currently being sent.

Note that the NM_FT_COMPLETE value simply represents completion of the operation. The operation might have finished due to success, cancellation, or failure.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

INmFt::IsIncoming

HRESULT IsIncoming(
void);

Determines whether the current File object is being transferred to the local computer.

Up ArrowBack to INmFt Interface

Up ArrowBack to File Object

Up ArrowBack to COM Object Listing

Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.