updater.cpp File Reference

Windows auto-updater. More...

#include "linden_common.h"
#include <windows.h>
#include <wininet.h>

Include dependency graph for updater.cpp:

Go to the source code of this file.

Defines

#define BUFSIZE   8192
#define win_class_name   L"FullScreen"

Functions

char * wchars_to_utf8chars (WCHAR *in_chars)
int WINAPI get_url_into_file (WCHAR *uri, char *path, int *cancelled)
LRESULT CALLBACK WinProc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
int parse_args (int argc, char **argv)
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)

Variables

int gTotalBytesRead = 0
DWORD gTotalBytes = -1
HWND gWindow = NULL
WCHAR gProgress [256]
char * gUpdateURL
char * gProgramName
char * gProductName
bool gIsSilent


Detailed Description

Windows auto-updater.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2008, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file updater.cpp.


Define Documentation

#define BUFSIZE   8192

#define win_class_name   L"FullScreen"

Definition at line 274 of file updater.cpp.

Referenced by WinMain().


Function Documentation

int WINAPI get_url_into_file ( WCHAR *  uri,
char *  path,
int *  cancelled 
)

Definition at line 82 of file updater.cpp.

References BUFSIZE, FALSE, gProgress, gTotalBytes, gTotalBytesRead, gWindow, NULL, TRUE, and wchars_to_utf8chars().

Referenced by WinMain().

Here is the call graph for this function:

Here is the caller graph for this function:

int parse_args ( int  argc,
char **  argv 
)

Definition at line 276 of file updater.cpp.

References gIsSilent, gProductName, gProgramName, gUpdateURL, and j.

char* wchars_to_utf8chars ( WCHAR *  in_chars  ) 

Definition at line 56 of file updater.cpp.

References i.

Referenced by get_url_into_file().

Here is the caller graph for this function:

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nShowCmd 
)

Definition at line 309 of file updater.cpp.

References get_url_into_file(), gIsSilent, gProductName, gProgramName, gProgress, gTotalBytesRead, gUpdateURL, gWindow, NULL, parse_args(), win_class_name, and WinProc().

Here is the call graph for this function:

LRESULT CALLBACK WinProc ( HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 245 of file updater.cpp.

References gProgress.

Referenced by WinMain().

Here is the caller graph for this function:


Variable Documentation

bool gIsSilent

Definition at line 50 of file updater.cpp.

Referenced by parse_args(), and WinMain().

char* gProductName

Definition at line 49 of file updater.cpp.

char* gProgramName

Definition at line 48 of file updater.cpp.

Referenced by parse_args(), and WinMain().

WCHAR gProgress[256]

Definition at line 46 of file updater.cpp.

Referenced by get_url_into_file(), WinMain(), and WinProc().

DWORD gTotalBytes = -1

Definition at line 44 of file updater.cpp.

Referenced by get_url_into_file().

int gTotalBytesRead = 0

Definition at line 43 of file updater.cpp.

Referenced by get_url_into_file(), and WinMain().

char* gUpdateURL

Definition at line 47 of file updater.cpp.

HWND gWindow = NULL

Definition at line 45 of file updater.cpp.


Generated on Fri May 16 08:38:19 2008 for SecondLife by  doxygen 1.5.5