$#K SNetPerformUpgrade

Performs an automatic version update of the application.  You should call this function is SNetSelectProvider() or SNetInitializeProvider() fails and GetLastError() returns SNET_ERROR_REQUIRES_UPGRADE.

BOOL SNetPerformUpgrade (
	DWORD		*upgradestatus
);

Parameters

upgradestatus
Returns one of the following values, specifying whether the upgrade was successful:

Value	Meaning	
SNET_UPGRADE_FAILED	The upgrade failed or was canceled by the user.	
SNET_UPGRADE_NOT_NEEDED	No upgrade is needed.	
SNET_UPGRADE_SUCCEEDED	The upgrade succeeded.	
SNET_UPGRADING_TERMINATE
	The upgrade is currently in progress.  The patch program needs the application to terminate so that it can modify the application’s EXE or DLL files.  The patch program will restart the application after the upgrade is complete. 	

Return Value

This function returns TRUE for success or FALSE for failure.  The function can fail if:
•	No variable was provided to receive the upgrade status
•	The upgrade failed or was canceled by the user
•	No upgrade was needed