Public StrLogin As String, StrPass As String ' holds login and password
Public NewHost As String, NewUrl As String ' new server and url after redirection (see below)
Public BatchNumber As Integer ' holds the current batch number we need to send
Public Cookies(6) As String ' stores cookies received, required for receiving mailbox (contains encrypted information read by server)
Public CurrentCookie As Integer ' stores current cookie number, as there are numerous different ones
Public MailData As String ' once we begin to receive data about mailbox, this is the string that stores it so we can retrieve the information
Public ReadBox As Boolean, BoxBatch As Integer ' boolean for whether or not we are receiving the mailbox data, and batch number of the data we are receiving
' Socket Values
Public Const AF_INET = 2
Public Const SOCK_STREAM = 1
Public Const IPPROTO_IP = 0
Public Const SOCKET_CONNECT = 2
Public Const SOCKET_CANCEL = 5
Public Const SOCKET_FLUSH = 6
Public Const SOCKET_DISCONNECT = 7
Public Function MakeString(Connection As Integer) As String
Dim strdata As String ' for temporary storage of data to send
Case 1 'we get relocated to a new hotmail server (NewHost) containing the mailbox. here we request a new page, because contained in the url of the page (NewUrl) is our encrypted login and password