Changeset 6156 for trunk/src/user32/user32.cpp
- Timestamp:
- Jul 3, 2001, 8:33:28 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r6082 r6156 1 /* $Id: user32.cpp,v 1.10 3 2001-06-23 09:14:06sandervl Exp $ */1 /* $Id: user32.cpp,v 1.104 2001-07-03 18:33:27 sandervl Exp $ */ 2 2 3 3 /* … … 1036 1036 nlen = 0; 1037 1037 size = sizeof(WINHELP) + nlen + dsize; 1038 hwh = GlobalAlloc(0,size); 1038 #if 1 1039 hwh = GlobalAlloc(GMEM_SHARE,size); 1039 1040 lpwh = (WINHELP*)GlobalLock(hwh); 1041 #else 1042 hwh = (HANDLE)_smalloc(size); 1043 lpwh = (WINHELP*)hwh; 1044 #endif 1040 1045 lpwh->size = size; 1041 1046 lpwh->command = uCommand; … … 1322 1327 } 1323 1328 /***************************************************************************** 1324 * Name : int WIN32API ToUnicode1325 * Purpose : The ToUnicode function translates the specified virtual-key code1326 * and keyboard state to the corresponding Unicode character or characters.1327 * Parameters: UINT wVirtKey virtual-key code1328 * UINT wScanCode scan code1329 * PBYTE lpKeyState address of key-state array1330 * LPWSTR pwszBuff buffer for translated key1331 * int cchBuff size of translated key buffer1332 * UINT wFlags set of function-conditioning flags1333 * Variables :1334 * Result : - 1 The specified virtual key is a dead-key character (accent or1335 * diacritic). This value is returned regardless of the keyboard1336 * layout, even if several characters have been typed and are1337 * stored in the keyboard state. If possible, even with Unicode1338 * keyboard layouts, the function has written a spacing version of1339 * the dead-key character to the buffer specified by pwszBuffer.1340 * For example, the function writes the character SPACING ACUTE1341 * (0x00B4), rather than the character NON_SPACING ACUTE (0x0301).1342 * 0 The specified virtual key has no translation for the current1343 * state of the keyboard. Nothing was written to the buffer1344 * specified by pwszBuffer.1345 * 1 One character was written to the buffer specified by pwszBuffer.1346 * 2 or more Two or more characters were written to the buffer specified by1347 * pwszBuff. The most common cause for this is that a dead-key1348 * character (accent or diacritic) stored in the keyboard layout1349 * could not be combined with the specified virtual key to form a1350 * single character.1351 * Remark :1352 * Status : UNTESTED STUB1353 *1354 * Author : Patrick Haller [Thu, 1998/02/26 11:55]1355 *****************************************************************************/1356 int WIN32API ToUnicode(UINT uVirtKey,1357 UINT uScanCode,1358 PBYTE lpKeyState,1359 LPWSTR pwszBuff,1360 int cchBuff,1361 UINT wFlags)1362 {1363 dprintf(("USER32:ToUnicode (%u,%u,%08xh,%08xh,%u,%08x) not implemented.\n",1364 uVirtKey,1365 uScanCode,1366 lpKeyState,1367 pwszBuff,1368 cchBuff,1369 wFlags));1370 1371 return (0);1372 }1373 /*****************************************************************************1374 1329 * Name : BOOL WIN32API UnloadKeyboardLayout 1375 1330 * Purpose : The UnloadKeyboardLayout function removes a keyboard layout.
Note:
See TracChangeset
for help on using the changeset viewer.