Removed old stuff

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2193 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-02-20 17:33:46 +00:00
parent 1176838e7d
commit 660199943e

View file

@ -4,13 +4,9 @@
#include "../exdll/exdll.h" #include "../exdll/exdll.h"
HWND g_hwndParent;
int g_stringsize;
stack_t **g_stacktop;
char *g_variables;
#define NSISFunction(funcname) void __declspec(dllexport) funcname(HWND hwndParent, int string_size, char *variables, stack_t **stacktop) #define NSISFunction(funcname) void __declspec(dllexport) funcname(HWND hwndParent, int string_size, char *variables, stack_t **stacktop)
#define NSISGetVars g_hwndParent=hwndParent;g_stringsize=string_size;g_stacktop=stacktop;g_variables=variables
HMODULE hWinInet;
BOOL WINAPI _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) { BOOL WINAPI _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) {
return TRUE; return TRUE;
@ -21,7 +17,7 @@ BOOL WINAPI _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lp
\*************/ \*************/
NSISFunction(AutodialOnline) { NSISFunction(AutodialOnline) {
NSISGetVars; EXDLL_INIT();
if (InternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE, 0)) if (InternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE, 0))
pushstring("online"); pushstring("online");
else else
@ -29,7 +25,7 @@ NSISFunction(AutodialOnline) {
} }
NSISFunction(AutodialUnattended) { NSISFunction(AutodialUnattended) {
NSISGetVars; EXDLL_INIT();
if (InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED , 0)) if (InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED , 0))
pushstring("online"); pushstring("online");
else else
@ -37,7 +33,7 @@ NSISFunction(AutodialUnattended) {
} }
NSISFunction(AttemptConnect) { NSISFunction(AttemptConnect) {
NSISGetVars; EXDLL_INIT();
if (InternetAttemptConnect(0) == ERROR_SUCCESS) if (InternetAttemptConnect(0) == ERROR_SUCCESS)
pushstring("online"); pushstring("online");
else else
@ -46,7 +42,7 @@ NSISFunction(AttemptConnect) {
NSISFunction(GetConnectedState) { NSISFunction(GetConnectedState) {
DWORD dwState; DWORD dwState;
NSISGetVars; EXDLL_INIT();
if (InternetGetConnectedState(&dwState, 0)) if (InternetGetConnectedState(&dwState, 0))
pushstring("online"); pushstring("online");
@ -55,7 +51,7 @@ NSISFunction(GetConnectedState) {
} }
NSISFunction(AutodialHangup) { NSISFunction(AutodialHangup) {
NSISGetVars; EXDLL_INIT();
if (InternetAutodialHangup(0)) if (InternetAutodialHangup(0))
pushstring("success"); pushstring("success");
else else