Hi, I have written an application which is used to detect the language identifier of the text in the clipboard. When the keyboard type and language are US 101/102 and US English, application returs 409 on Windows NT and Windows 2000. Whereas the same application returns 4090409 on Windows 95, 98 and Me.
Would you please let me know why this difference in behaviour on Windows OS. Also which one is correct (409 or 4090409). The code is as follows
char a[10]; OpenClipboard(hwnd); HANDLE hLocale = GetClipboardData(CF_LOCALE); LCID *pLocale = (LCID *)GlobalLock(hLocale); GlobalUnlock(hLocale); sprintf(a,”%x”, (*pLocale)); MessageBox(0,a,”pLocale”, 0); CloseClipboard();
Regards, Upadhyaya .