OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 /* Copyright (C) 1994 Cazamar Systems, Inc. */ 00011 00012 #define IDM_CMD1 101 00013 #define IDM_CMD2 102 00014 #define IDM_CMD3 103 00015 #define IDM_CMD4 104 00016 #define IDM_NLABEL 105 /* never sent */ 00017 #define IDM_NAME 106 /* name */ 00018 #define IDM_TYPES 107 /* result list */ 00019 #define IDM_RESULTS 108 /* result list */ 00020 #define IDM_STATUS 109 00021 00022 #define IDM_ABOUT 1000 /* about box */ 00023 #define IDM_HELP 1001 /* get help */ 00024 00025 #define IDM_FILEBOX 2000 /* for getting file name */ 00026 #define IDM_FILENAME 2001 /* for getting file name */ 00027 00028 /* this define is generated by manually to correspond to dbrpc_ClientIfHandle. 00029 * It turns out that the MS linker adds an extra level of indirection to exported 00030 * globals. Rather than use confusing names, we rename the thing to have an extra 00031 * p suffix, but since no one's defining the type of this symbol, we do it manually 00032 * here. 00033 */ 00034 extern RPC_IF_HANDLE *dbrpc_v1_0_c_ifspecp; 00035 00036 BOOL InitApplication(HANDLE); 00037 BOOL InitInstance(HANDLE, INT); 00038 LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG); 00039 BOOL APIENTRY About(HWND, UINT, UINT, LONG); 00040 BOOL APIENTRY FileProc(HWND, UINT, UINT, LONG); 00041 00042 typedef struct main_formatCache { 00043 struct main_formatCache *nextp; 00044 char *typep; 00045 long region; 00046 long index; 00047 char *labelp; /* null means we know this doesn't exist */ 00048 long format; 00049 } main_formatCache_t; 00050 00051 extern void main_SetStatus(char *); 00052 00053 /* max of 10 lines on the screen */ 00054 #define HW_NLINES 10 00055 00056 /* screen image to write to from tests 00057 * This shouldn't be global, but it doesn't matter that much. 00058 */ 00059 extern char main_screenText[HW_NLINES][80]; 00060 00061 #ifdef WIN32 00062 #define GET_WM_HSCROLL_CODE(wp, lp) LOWORD(wp) 00063 #define GET_WM_HSCROLL_POS(wp, lp) HIWORD(wp) 00064 #define GET_WM_HSCROLL_HWND(wp, lp) (HWND)(lp) 00065 #else 00066 #define GET_WM_HSCROLL_CODE(wp, lp) (wp) 00067 #define GET_WM_HSCROLL_POS(wp, lp) LOWORD(lp) 00068 #define GET_WM_HSCROLL_HWND(wp, lp) (HWND)HIWORD(lp) 00069 #endif