death to trailing whitespace
[openafs.git] / src / WINNT / client_osi / osidebug.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /* Copyright (C) 1994 Cazamar Systems, Inc. */
11
12 #define IDM_CMD1        101
13 #define IDM_CMD2        102
14 #define IDM_CMD3        103
15 #define IDM_CMD4        104
16 #define IDM_NLABEL      105     /* never sent */
17 #define IDM_NAME        106     /* name */
18 #define IDM_TYPES       107     /* result list */
19 #define IDM_RESULTS     108     /* result list */
20 #define IDM_STATUS      109
21
22 #define IDM_ABOUT       1000    /* about box */
23 #define IDM_HELP        1001    /* get help */
24
25 #define IDM_FILEBOX     2000    /* for getting file name */
26 #define IDM_FILENAME    2001    /* for getting file name */
27
28 /* this define is generated by manually to correspond to dbrpc_ClientIfHandle.
29  * It turns out that the MS linker adds an extra level of indirection to exported
30  * globals.  Rather than use confusing names, we rename the thing to have an extra
31  * p suffix, but since no one's defining the type of this symbol, we do it manually
32  * here.
33  */
34 extern RPC_IF_HANDLE *dbrpc_v1_0_c_ifspecp;
35
36 BOOL InitApplication(HANDLE);
37 BOOL InitInstance(HANDLE, INT);
38 LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG);
39 BOOL APIENTRY About(HWND, UINT, UINT, LONG);
40 BOOL APIENTRY FileProc(HWND, UINT, UINT, LONG);
41
42 typedef struct main_formatCache {
43         struct main_formatCache *nextp;
44         char *typep;
45         long region;
46         long index;
47         char *labelp;   /* null means we know this doesn't exist */
48         long format;
49 } main_formatCache_t;
50
51 extern void main_SetStatus(char *);
52
53 /* max of 10 lines on the screen */
54 #define HW_NLINES 10
55
56 /* screen image to write to from tests
57  * This shouldn't be global, but it doesn't matter that much.
58  */
59 extern char main_screenText[HW_NLINES][80];
60
61 #ifdef WIN32
62 #define GET_WM_HSCROLL_CODE(wp, lp)    LOWORD(wp)
63 #define GET_WM_HSCROLL_POS(wp, lp)     HIWORD(wp)
64 #define GET_WM_HSCROLL_HWND(wp, lp)    (HWND)(lp)
65 #else
66 #define GET_WM_HSCROLL_CODE(wp, lp)    (wp)
67 #define GET_WM_HSCROLL_POS(wp, lp)     LOWORD(lp)
68 #define GET_WM_HSCROLL_HWND(wp, lp)    (HWND)HIWORD(lp)
69 #endif