death to trailing whitespace
[openafs.git] / src / WINNT / client_osi / main.h
1 /*
2  * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
3  *
4  * (C) COPYRIGHT IBM CORPORATION 1987, 1988
5  * LICENSED MATERIALS - PROPERTY OF IBM
6  *
7  */
8
9 /* Copyright (C) 1994 Cazamar Systems, Inc. */
10
11 #define IDM_ABOUT       100     /* about box */
12 #define IDM_BASICTEST   101     /* run basic tests */
13 #define IDM_PERFTEST    102     /* run perf tests */
14 #define IDM_TRYLOCKTEST 103     /* run trylock tests */
15 #define IDM_DEBUGON     104     /* turn on debug lock tracing */
16 #define IDM_DEBUGOFF    105     /* turn off debug lock tracing */
17
18 BOOL InitApplication(HANDLE);
19 BOOL InitInstance(HANDLE, INT);
20 LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
21 BOOL APIENTRY About(HWND, UINT, UINT, LONG);
22
23 extern void main_ForceDisplay(HANDLE hWnd);
24
25 extern void main_ClearDisplay(void);
26
27 /* max of 10 lines on the screen */
28 #define HW_NLINES 10
29
30 /* screen image to write to from tests
31  * This shouldn't be global, but it doesn't matter that much.
32  */
33 extern char main_screenText[HW_NLINES][80];
34
35 #ifdef WIN32
36 #define GET_WM_HSCROLL_CODE(wp, lp)    LOWORD(wp)
37 #define GET_WM_HSCROLL_POS(wp, lp)     HIWORD(wp)
38 #define GET_WM_HSCROLL_HWND(wp, lp)    (HWND)(lp)
39 #else
40 #define GET_WM_HSCROLL_CODE(wp, lp)    (wp)
41 #define GET_WM_HSCROLL_POS(wp, lp)     LOWORD(lp)
42 #define GET_WM_HSCROLL_HWND(wp, lp)    (HWND)HIWORD(lp)
43 #endif