|
|
1.1 ! root 1: /*********************************************************************/ ! 2: /* Windows/PM Cardfile Shared Code */ ! 3: /* */ ! 4: /* (c) Copyright Microsoft Corp. 1987,1988 - All Rights Reserved */ ! 5: /*********************************************************************/ ! 6: ! 7: ! 8: /**************************************************/ ! 9: /* Standard definitions possibly not in PM files */ ! 10: /**************************************************/ ! 11: ! 12: #ifndef NULL ! 13: #define NULL 0 ! 14: #endif ! 15: ! 16: ! 17: ! 18: /**************************************************/ ! 19: /* Type definitions used for PM binding system */ ! 20: /**************************************************/ ! 21: ! 22: ! 23: #define WINWORD long ! 24: #define DLGRET long ! 25: #define DIALOGDEFAULT( a, b, c, d ) \ ! 26: return( WinDefDlgProc( a, b, MPFROMLONG(c), MPFROMLONG(d) ) ) ! 27: ! 28: #define HICON HPOINTER ! 29: #define HINST HAB ! 30: #define HCURSOR HPOINTER ! 31: #define HMENU HWND ! 32: #define MSG QMSG ! 33: #define LPMSG PQMSG ! 34: ! 35: #define HPEN LHANDLE ! 36: ! 37: typedef struct { ! 38: HPS hdc; ! 39: WRECT rcPaint; ! 40: } PAINTSTRUCT; ! 41: typedef PAINTSTRUCT *LPPAINTSTRUCT; ! 42: ! 43: #define HBRUSH long ! 44: #define LOGBRUSH long ! 45: ! 46: #define PWNDCLASS int ! 47: ! 48: #define HANDLE LHANDLE ! 49: #define DWORD ULONG ! 50: #define WORD USHORT ! 51: #define FARPROC PFNWP ! 52: #define LPSTR PSZ ! 53: #define PSTR char * ! 54: #define POINT WPOINT ! 55: ! 56: #define RECT WRECT ! 57: #define LPRECT PRECTL ! 58: #define right xRight ! 59: #define left xLeft ! 60: #define top yTop ! 61: #define bottom yBottom ! 62: ! 63: #define LOWORD(x) LOUSHORT(x) ! 64: #define HIWORD(x) HIUSHORT(x) ! 65: ! 66: #define TEXTMETRIC FONTMETRICS ! 67: #define LPTEXTMETRIC PFONTMETRICS ! 68: #define tmHeight lEmHeight ! 69: #define tmExternalLeading lExternalLeading ! 70: #define tmAveCharWidth lAveCharWidth ! 71: ! 72: ! 73: /* The types and constants needed for OpenFile */ ! 74: ! 75: typedef struct { ! 76: BYTE cBytes; ! 77: BYTE fFixedDisk; ! 78: USHORT nErrCode; ! 79: BYTE reserved[ 4 ]; ! 80: BYTE szPathName[ 120 ]; ! 81: } OFSTRUCT; ! 82: typedef OFSTRUCT *POFSTRUCT; ! 83: typedef OFSTRUCT NEAR *NPOFSTRUCT; ! 84: typedef OFSTRUCT FAR *LPOFSTRUCT; ! 85: ! 86: #define OF_REOPEN 0x8000 ! 87: #define OF_EXIST 0x4000 ! 88: #define OF_PROMPT 0x2000 ! 89: #define OF_CREATE 0x1000 ! 90: #define OF_CANCEL 0x0800 ! 91: #define OF_VERIFY 0x0400 ! 92: #define OF_DELETE 0x0200 ! 93: #define OF_PARSE 0x0100 ! 94: ! 95: #define OF_READ 0 ! 96: #define OF_WRITE 1 ! 97: #define OF_READWRITE 2 ! 98: ! 99: ! 100:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.