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";
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;
......
#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!",
......
......@@ -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;
......
......@@ -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;
......
......@@ -4,7 +4,7 @@
#include <stdio.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;
void (CALLBACK *fnGetSystemInfo)(LPSYSTEM_INFO si);
......
......@@ -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" ;
......
......@@ -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)
......
......@@ -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;
......
......@@ -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;
......
......@@ -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);
}
......
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