--- mstools/samples/filer/filer.c 2018/08/09 18:20:59 1.1 +++ mstools/samples/filer/filer.c 2018/08/09 18:22:14 1.1.1.2 @@ -1,6 +1,13 @@ /******************************Module*Header*******************************\ +* +* +* Microsoft Developer Support +* Copyright (c) 1992 Microsoft Corporation +* +* * Module Name: Filer.c * +* * Filer: SDK sample * + Simple File Management program with GUI front end. * Demonstrates Win32 File I/O API and various User algorithms. @@ -20,6 +27,7 @@ * -Filer.h * \**************************************************************************/ +#define STRICT #include #include #include @@ -77,7 +85,7 @@ char gszExtensions[NUM_EXTENSION_STRI * 04-17-91 * Created. \***************************************************************************/ -int WinMain( +int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, @@ -189,7 +197,7 @@ BOOL InitializeApp(void) * 05-01-92 Created. \***************************************************************************/ -LRESULT MainWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT WINAPI MainWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { @@ -277,7 +285,7 @@ LRESULT MainWndProc(HWND hwnd, UINT mess ghwndFunction = CreateDialog(ghModule, "FunctionBar", hwnd, - (DLGPROC)FunctionBarProc); + (DLGPROC)FunctionBarProc); ghwndCommand = CreateWindow("EDIT", NULL, ES_AUTOHSCROLL | ES_LEFT | WS_BORDER | @@ -607,7 +615,7 @@ LRESULT MainWndProc(HWND hwnd, UINT mess * 05-13-92 Created. \***************************************************************************/ -LRESULT AboutProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT WINAPI AboutProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG:{ @@ -644,7 +652,7 @@ LRESULT AboutProc(HWND hDlg, UINT messag * \***************************************************************************/ -LRESULT DriveBarProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT WINAPI DriveBarProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { static HBITMAP hDrvBmp[NUM_BITMAPS]; static HBRUSH hBrush; // background brush @@ -1200,7 +1208,7 @@ BOOL ChangeDrive(LPSTR lpszDriveName, DW * \***************************************************************************/ -LRESULT FunctionBarProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT WINAPI FunctionBarProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { static HBRUSH hBrush;