--- q_a/samples/simpldll/loadtest.h 2018/08/09 18:29:19 1.1 +++ q_a/samples/simpldll/loadtest.h 2018/08/09 18:29:50 1.1.1.3 @@ -1,14 +1,25 @@ -/************************************************************************\ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + +/******************************************************************************\ * -* LINKTEST.H +* LOADTEST.H * -\************************************************************************/ +\******************************************************************************/ -/************************************************************************\ -* SYMBOLIC CONSTANTS -\************************************************************************/ +/******************************************************************************\ +* SYMBOLIC CONSTANTS +\******************************************************************************/ #define IDM_LOADLIBRARY 100 /* menu identifiers */ #define IDM_FREELIBRARY 101 @@ -18,35 +29,38 @@ #define IDM_DLLFUNCTION3 105 #define IDM_DLLFUNCTION4 106 #define IDM_DLLDIALOGBOX 107 +#define IDM_ABOUT 108 -/************************************************************************\ -* TYPEDEFS -\************************************************************************/ +/******************************************************************************\ +* TYPEDEFS +\******************************************************************************/ typedef int (*PFNDLL)(); -/************************************************************************\ -* GLOBAL VARS -\************************************************************************/ +/******************************************************************************\ +* GLOBAL VARS +\******************************************************************************/ + +HWND ghwndMain; -HWND hwndMain; +PFNDLL gpfnDLLFunction1 = NULL; +PFNDLL gpfnDLLFunction2 = NULL; +PFNDLL gpfnDLLFunction3 = NULL; +PFNDLL gpfnDLLFunction4 = NULL; +PFNDLL gpfnDLLDialogBox = NULL; -PFNDLL pfnDLLFunction1 = NULL; -PFNDLL pfnDLLFunction2 = NULL; -PFNDLL pfnDLLFunction3 = NULL; -PFNDLL pfnDLLFunction4 = NULL; -PFNDLL pfnDLLDialogBox = NULL; +/******************************************************************************\ +* FUNCTION PROTOTYPES +\******************************************************************************/ -/************************************************************************\ -* FUNCTION PROTOTYPES -\************************************************************************/ +LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK AboutDlgProc (HWND, UINT, WPARAM, LPARAM); -LONG APIENTRY MainWndProc (HWND, UINT, UINT, LONG); -void ThreadProc (void); -void FixMenu (UINT, HMENU); +void ThreadProc (void); +void FixMenu (UINT, HMENU);