Commit 28fc36d3 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Fixed WinMain's signature.

parent 49d251ff
...@@ -4,7 +4,7 @@ char szAppName[] = "Hello"; ...@@ -4,7 +4,7 @@ char szAppName[] = "Hello";
long FAR PASCAL WndProc(HWND, UINT, WPARAM, LPARAM); 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) int nCmdShow)
{ {
HWND hwnd; HWND hwnd;
......
#include "windows.h" #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, return MessageBox((HWND)0,
(LPSTR)"Hello, hello!", (LPSTR)"Hello, hello!",
......
...@@ -82,7 +82,7 @@ LRESULT CALLBACK WndProc (HWND wnd, UINT msg, WPARAM w, LPARAM l) ...@@ -82,7 +82,7 @@ LRESULT CALLBACK WndProc (HWND wnd, UINT msg, WPARAM w, LPARAM l)
return 0l; 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; MSG msg;
WNDCLASS class; WNDCLASS class;
......
...@@ -99,7 +99,7 @@ LRESULT CALLBACK WndProc2 (HWND wnd, UINT msg, WPARAM w, LPARAM l) ...@@ -99,7 +99,7 @@ LRESULT CALLBACK WndProc2 (HWND wnd, UINT msg, WPARAM w, LPARAM l)
return 0l; 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; HWND wnd,wnd2;
MSG msg; MSG msg;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <stdio.h> #include <stdio.h>
#include <windows.h> #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)
{ {
SYSTEM_INFO si; SYSTEM_INFO si;
void (CALLBACK *fnGetSystemInfo)(LPSYSTEM_INFO si); void (CALLBACK *fnGetSystemInfo)(LPSYSTEM_INFO si);
......
...@@ -6,7 +6,7 @@ HANDLE ghInstance; ...@@ -6,7 +6,7 @@ HANDLE ghInstance;
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK ChildProc (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) LPSTR lpszCmdParam, int nCmdShow)
{ {
char szAppName[] = "ClassLook" ; char szAppName[] = "ClassLook" ;
......
...@@ -220,7 +220,7 @@ WPARAM MessageLoop() ...@@ -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; WNDCLASS class;
if(!prev) if(!prev)
......
...@@ -101,7 +101,7 @@ OLECHAR* AtoW( char* p ) ...@@ -101,7 +101,7 @@ OLECHAR* AtoW( char* p )
#endif #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 va;
VARIANTARG vb; VARIANTARG vb;
......
...@@ -854,7 +854,7 @@ LRESULT NOTEPAD_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) ...@@ -854,7 +854,7 @@ LRESULT NOTEPAD_WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
* WinMain * 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; MSG msg;
WNDCLASS class; WNDCLASS class;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "windows.h" #include "windows.h"
#include "version.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); return ShellAbout((HWND)0, "WINE", WINE_RELEASE_INFO, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment