From 28fc36d38c4c22e98d53f47ba09f785d608ea496 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sun, 23 Jul 2000 19:32:11 +0000 Subject: [PATCH] Fixed WinMain's signature. --- libtest/hello.c | 2 +- libtest/hello2.c | 2 +- libtest/hello3.c | 2 +- libtest/hello4.c | 2 +- libtest/hello5.c | 2 +- libtest/new.c | 2 +- libtest/rolex.c | 2 +- libtest/vartest.c | 2 +- programs/notepad/main.c | 2 +- programs/winver/winver.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libtest/hello.c b/libtest/hello.c index a897e940cc1..41036cb4a51 100644 --- a/libtest/hello.c +++ b/libtest/hello.c @@ -4,7 +4,7 @@ char szAppName[] = "Hello"; long FAR PASCAL WndProc(HWND, UINT, WPARAM, LPARAM); -int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInst, LPSTR lpszCmdLine, +int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nCmdShow) { HWND hwnd; diff --git a/libtest/hello2.c b/libtest/hello2.c index 589f1319d92..166eec4daa7 100644 --- a/libtest/hello2.c +++ b/libtest/hello2.c @@ -1,6 +1,6 @@ #include "windows.h" -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { return MessageBox((HWND)0, (LPSTR)"Hello, hello!", diff --git a/libtest/hello3.c b/libtest/hello3.c index 462bbe324a3..80e077bf988 100644 --- a/libtest/hello3.c +++ b/libtest/hello3.c @@ -82,7 +82,7 @@ LRESULT CALLBACK WndProc (HWND wnd, UINT msg, WPARAM w, LPARAM l) return 0l; } -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { MSG msg; WNDCLASS class; diff --git a/libtest/hello4.c b/libtest/hello4.c index 08e5ff7ea87..6e247cb6e16 100644 --- a/libtest/hello4.c +++ b/libtest/hello4.c @@ -99,7 +99,7 @@ LRESULT CALLBACK WndProc2 (HWND wnd, UINT msg, WPARAM w, LPARAM l) return 0l; } -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { HWND wnd,wnd2; MSG msg; diff --git a/libtest/hello5.c b/libtest/hello5.c index 75825d09aaa..c3047bdb88c 100644 --- a/libtest/hello5.c +++ b/libtest/hello5.c @@ -4,7 +4,7 @@ #include #include -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { SYSTEM_INFO si; void (CALLBACK *fnGetSystemInfo)(LPSYSTEM_INFO si); diff --git a/libtest/new.c b/libtest/new.c index 63c6488984a..dc0b5076f11 100644 --- a/libtest/new.c +++ b/libtest/new.c @@ -6,7 +6,7 @@ HANDLE ghInstance; LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK ChildProc (HWND, UINT, WPARAM, LPARAM); -int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, +int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nCmdShow) { char szAppName[] = "ClassLook" ; diff --git a/libtest/rolex.c b/libtest/rolex.c index ca84e99d670..4881600eda3 100644 --- a/libtest/rolex.c +++ b/libtest/rolex.c @@ -220,7 +220,7 @@ WPARAM MessageLoop() } } -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { WNDCLASS class; if(!prev) diff --git a/libtest/vartest.c b/libtest/vartest.c index e6a8f5b8893..afff0f217a1 100644 --- a/libtest/vartest.c +++ b/libtest/vartest.c @@ -101,7 +101,7 @@ OLECHAR* AtoW( char* p ) #endif -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { VARIANTARG va; VARIANTARG vb; diff --git a/programs/notepad/main.c b/programs/notepad/main.c index cfc73c34cee..36fbdaf1e70 100644 --- a/programs/notepad/main.c +++ b/programs/notepad/main.c @@ -854,7 +854,7 @@ LRESULT NOTEPAD_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) * WinMain */ -int PASCAL WinMain (HANDLE hInstance, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show) { MSG msg; WNDCLASS class; diff --git a/programs/winver/winver.c b/programs/winver/winver.c index fde3992e86f..caf36404964 100644 --- a/programs/winver/winver.c +++ b/programs/winver/winver.c @@ -8,7 +8,7 @@ #include "windows.h" #include "version.h" -int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) +int PASCAL WinMain (HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { return ShellAbout((HWND)0, "WINE", WINE_RELEASE_INFO, 0); }