Changeset 2765 for trunk/synergy/lib/platform/CPMUtil.cpp
- Timestamp:
- Aug 14, 2006, 6:55:06 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/platform/CPMUtil.cpp
r2761 r2765 3 3 * Copyright (C) 2004 Chris Schoeneman 4 4 * Copyright (C) 2006 Knut St. Osmundsen 5 * 5 * 6 6 * This package is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU General Public License 8 8 * found in the file COPYING that should have accompanied this file. 9 * 9 * 10 10 * This package is distributed in the hope that it will be useful, 11 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 67 67 return result; 68 68 } 69 #endif 69 #endif 70 70 } 71 71 … … 83 83 } 84 84 85 86 /** dynamic resolver */ 87 USHORT APIENTRY WinTranslateChar2(USHORT usCodePage, 88 PUSHORT pusCharInOut, 89 PULONG pulDeadKeyInfo, 90 WINTCOP enmOperation, 91 PUSHORT pfShiftState) 92 { 93 static USHORT (* APIENTRY pfnWinTranslateChar2)(USHORT, PUSHORT, PULONG, WINTCOP, PUSHORT) = NULL; 94 if (!pfnWinTranslateChar2) { 95 /* resolve it */ 96 HMODULE hmod; 97 if ( DosLoadModule(NULL, 0, (PCSZ)"PMWIN", &hmod) != NO_ERROR 98 || DosQueryProcAddr(hmod, 1070, NULL, (PPFN)&pfnWinTranslateChar2) != NO_ERROR) { 99 asm("int3"); 100 *pusCharInOut = 0; 101 return 0; 102 } 103 DosFreeModule(hmod); 104 } 105 return pfnWinTranslateChar2(usCodePage, pusCharInOut, pulDeadKeyInfo, enmOperation, pfShiftState); 106 } 107
Note:
See TracChangeset
for help on using the changeset viewer.