# InetPop3GetMessageSize

int InetPop3GetMessageSize (int POP3Handle, int messageIndex, int *messageSize);

## Purpose

Returns the size of a message on the POP3 server. This is the size of the entire message including headers and attachments.

## Parameters

Input
Name | Type | Description
POP3Handle | integer | A POP3 handle returned by the InetPop3Open function.
messageIndex | integer | The zero–based index of a message on the POP3 server.
Output
Name | Type | Description
messageSize | integer * | The size of the entire message, in bytes. Pass the address of an integer variable.

## Return Value

Name | Type | Description
result | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.