Fixed WinMain's signature.

This commit is contained in:
Francois Gouget 2000-07-23 19:32:11 +00:00 committed by Alexandre Julliard
parent 49d251ff30
commit 28fc36d38c
10 changed files with 10 additions and 10 deletions

View File

@ -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;

View File

@ -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!",

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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" ;

View File

@ -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)

View File

@ -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;

View File

@ -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;

View File

@ -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);
}