--- mstools/samples/getsys/getsys.c 2018/08/09 18:20:48 1.1 +++ mstools/samples/getsys/getsys.c 2018/08/09 18:21:47 1.1.1.2 @@ -1,6 +1,10 @@ /**************************************************************************\ * getsys.c -- sample program demonstrating the GetSys... APIs * +* Steve Firebaugh +* Microsoft Developer Support +* Copyright (c) 1992 Microsoft Corporation +* * In this sample the main window is a dialog box. There is no need to * register a new window class or create a new window. Instead just call * DialogBox() and use the template defined in the .RC file. All of the @@ -49,7 +53,7 @@ int ret; * input parameters: standard window procedure parameters. * \**************************************************************************/ -LRESULT MainDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK MainDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); @@ -195,9 +199,9 @@ SYSTEM_INFO si; SendDlgItemMessage (hwnd, DID_LISTBOX, LB_ADDSTRING, 0, (LONG) buffer); wsprintf (buffer, "dwProcessorType \t%d", (int) si.dwProcessorType ); SendDlgItemMessage (hwnd, DID_LISTBOX, LB_ADDSTRING, 0, (LONG) buffer); - wsprintf (buffer, "dwProcessorRevision \t%d", (int) si.dwProcessorRevision ); + wsprintf (buffer, "dwReserved1 \t%d", (int) si.dwReserved1 ); SendDlgItemMessage (hwnd, DID_LISTBOX, LB_ADDSTRING, 0, (LONG) buffer); - wsprintf (buffer, "dwProcessorOptions \t%d", (int) si.dwProcessorOptions ); + wsprintf (buffer, "dwReserved2 \t%d", (int) si.dwReserved2 ); SendDlgItemMessage (hwnd, DID_LISTBOX, LB_ADDSTRING, 0, (LONG) buffer); return;