Mercurial > hg > xemacs-beta
comparison src/intl-auto-encap-win32.c @ 5928:2f34b59f451a cygwin
from Vin?
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 24 Jul 2015 14:48:46 +0100 |
parents | 68639fb08af8 |
children | f5dfcf2323bc |
comparison
equal
deleted
inserted
replaced
5926:da02ba75e50a | 5928:2f34b59f451a |
---|---|
625 return GetKeyboardLayoutNameA ((LPSTR) pwszKLID); | 625 return GetKeyboardLayoutNameA ((LPSTR) pwszKLID); |
626 } | 626 } |
627 | 627 |
628 /* Error if CreateDesktop used: split-sized LPDEVMODE */ | 628 /* Error if CreateDesktop used: split-sized LPDEVMODE */ |
629 | 629 |
630 HDESK | 630 /* Skipping OpenDesktop because HST_LPC...pblm_unused */ |
631 qxeOpenDesktop (const Extbyte * lpszDesktop, DWORD dwFlags, WINBOOL fInherit, ACCESS_MASK dwDesiredAccess) | |
632 { | |
633 if (XEUNICODE_P) | |
634 return OpenDesktopW ((LPCWSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess); | |
635 else | |
636 return OpenDesktopA ((LPCSTR) lpszDesktop, dwFlags, fInherit, dwDesiredAccess); | |
637 } | |
638 | 631 |
639 /* NOTE: // callback fun differs only in string pointer type */ | 632 /* NOTE: // callback fun differs only in string pointer type */ |
640 WINBOOL | 633 WINBOOL |
641 qxeEnumDesktops (HWINSTA hwinsta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam) | 634 qxeEnumDesktops (HWINSTA hwinsta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam) |
642 { | 635 { |
661 return CreateWindowStationW ((LPWSTR) arg1, arg2, arg3, arg4); | 654 return CreateWindowStationW ((LPWSTR) arg1, arg2, arg3, arg4); |
662 else | 655 else |
663 return CreateWindowStationA ((LPSTR) arg1, arg2, arg3, arg4); | 656 return CreateWindowStationA ((LPSTR) arg1, arg2, arg3, arg4); |
664 } | 657 } |
665 | 658 |
666 HWINSTA | 659 /* Skipping OpenWindowStation because HST_LPC...pblm_unused */ |
667 qxeOpenWindowStation (const Extbyte * lpszWinSta, WINBOOL fInherit, ACCESS_MASK dwDesiredAccess) | |
668 { | |
669 if (XEUNICODE_P) | |
670 return OpenWindowStationW ((LPCWSTR) lpszWinSta, fInherit, dwDesiredAccess); | |
671 else | |
672 return OpenWindowStationA ((LPCSTR) lpszWinSta, fInherit, dwDesiredAccess); | |
673 } | |
674 | 660 |
675 /* NOTE: // callback fun differs only in string pointer type */ | 661 /* NOTE: // callback fun differs only in string pointer type */ |
676 WINBOOL | 662 WINBOOL |
677 qxeEnumWindowStations (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam) | 663 qxeEnumWindowStations (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam) |
678 { | 664 { |
1213 return DrawStateW (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags); | 1199 return DrawStateW (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags); |
1214 else | 1200 else |
1215 return DrawStateA (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags); | 1201 return DrawStateA (hdc, hbrFore, qfnCallBack, lData, wData, x, y, cx, cy, uFlags); |
1216 } | 1202 } |
1217 | 1203 |
1218 LONG | 1204 /* Skipping TabbedTextOut because HST_LPC...pblm_unused */ |
1219 qxeTabbedTextOut (HDC hdc, int x, int y, const Extbyte * lpString, int chCount, int nTabPositions, CONST INT * lpnTabStopPositions, int nTabOrigin) | 1205 |
1220 { | 1206 /* Skipping GetTabbedTextExtent because HST_LPC...pblm_unused */ |
1221 if (XEUNICODE_P) | |
1222 return TabbedTextOutW (hdc, x, y, (LPCWSTR) lpString, chCount, nTabPositions, lpnTabStopPositions, nTabOrigin); | |
1223 else | |
1224 return TabbedTextOutA (hdc, x, y, (LPCSTR) lpString, chCount, nTabPositions, lpnTabStopPositions, nTabOrigin); | |
1225 } | |
1226 | |
1227 DWORD | |
1228 qxeGetTabbedTextExtent (HDC hdc, const Extbyte * lpString, int chCount, int nTabPositions, CONST INT * lpnTabStopPositions) | |
1229 { | |
1230 if (XEUNICODE_P) | |
1231 return GetTabbedTextExtentW (hdc, (LPCWSTR) lpString, chCount, nTabPositions, lpnTabStopPositions); | |
1232 else | |
1233 return GetTabbedTextExtentA (hdc, (LPCSTR) lpString, chCount, nTabPositions, lpnTabStopPositions); | |
1234 } | |
1235 | 1207 |
1236 WINBOOL | 1208 WINBOOL |
1237 qxeSetProp (HWND hWnd, const Extbyte * lpString, HANDLE hData) | 1209 qxeSetProp (HWND hWnd, const Extbyte * lpString, HANDLE hData) |
1238 { | 1210 { |
1239 if (XEUNICODE_P) | 1211 if (XEUNICODE_P) |
2411 | 2383 |
2412 WINBOOL | 2384 WINBOOL |
2413 qxeReadConsole (HANDLE hConsoleInput, LPVOID lpBuffer, DWORD nNumberOfCharsToRead, LPDWORD lpNumberOfCharsRead, LPVOID lpReserved) | 2385 qxeReadConsole (HANDLE hConsoleInput, LPVOID lpBuffer, DWORD nNumberOfCharsToRead, LPDWORD lpNumberOfCharsRead, LPVOID lpReserved) |
2414 { | 2386 { |
2415 if (XEUNICODE_P) | 2387 if (XEUNICODE_P) |
2416 return ReadConsoleW (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, lpReserved); | 2388 return ReadConsoleW (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, (PCONSOLE_READCONSOLE_CONTROL)lpReserved); |
2417 else | 2389 else |
2418 return ReadConsoleA (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, lpReserved); | 2390 return ReadConsoleA (hConsoleInput, lpBuffer, nNumberOfCharsToRead, lpNumberOfCharsRead, (PCONSOLE_READCONSOLE_CONTROL)lpReserved); |
2419 } | 2391 } |
2420 | 2392 |
2421 WINBOOL | 2393 WINBOOL |
2422 qxeWriteConsole (HANDLE hConsoleOutput, CONST VOID * lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved) | 2394 qxeWriteConsole (HANDLE hConsoleOutput, CONST VOID * lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved) |
2423 { | 2395 { |
3754 GetStartupInfoW (lpStartupInfo); | 3726 GetStartupInfoW (lpStartupInfo); |
3755 else | 3727 else |
3756 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo); | 3728 GetStartupInfoA ((LPSTARTUPINFOA) lpStartupInfo); |
3757 } | 3729 } |
3758 | 3730 |
3759 /* Error if CreateProcess used: HST: new? -- needs review */ | 3731 WINBOOL |
3732 qxeCreateProcess (const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, WINBOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) | |
3733 { | |
3734 if (XEUNICODE_P) | |
3735 return CreateProcessW ((LPCWSTR) lpApplicationName, (LPWSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCWSTR) lpCurrentDirectory, lpStartupInfo, lpProcessInformation); | |
3736 else | |
3737 return CreateProcessA ((LPCSTR) lpApplicationName, (LPSTR) lpCommandLine, lpProcessAttributes, lpThreadAttributes, bInheritHandles, dwCreationFlags, lpEnvironment, (LPCSTR) lpCurrentDirectory, (LPSTARTUPINFOA) lpStartupInfo, lpProcessInformation); | |
3738 } | |
3760 | 3739 |
3761 WINBOOL | 3740 WINBOOL |
3762 qxeCreateProcessAsUser (HANDLE hToken, const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, WINBOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) | 3741 qxeCreateProcessAsUser (HANDLE hToken, const Extbyte * lpApplicationName, Extbyte * lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, WINBOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, const Extbyte * lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation) |
3763 { | 3742 { |
3764 if (XEUNICODE_P) | 3743 if (XEUNICODE_P) |
4459 return GetUserNameW ((LPWSTR) lpBuffer, pcbBuffer); | 4438 return GetUserNameW ((LPWSTR) lpBuffer, pcbBuffer); |
4460 else | 4439 else |
4461 return GetUserNameA ((LPSTR) lpBuffer, pcbBuffer); | 4440 return GetUserNameA ((LPSTR) lpBuffer, pcbBuffer); |
4462 } | 4441 } |
4463 | 4442 |
4464 WINBOOL | 4443 /* Skipping LogonUser because HST_LPC...pblm_unused */ |
4465 qxeLogonUser (const Extbyte * lpszUsername, const Extbyte * lpszDomain, const Extbyte * lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken) | |
4466 { | |
4467 if (XEUNICODE_P) | |
4468 return LogonUserW ((LPCWSTR) lpszUsername, (LPCWSTR) lpszDomain, (LPCWSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken); | |
4469 else | |
4470 return LogonUserA ((LPCSTR) lpszUsername, (LPCSTR) lpszDomain, (LPCSTR) lpszPassword, dwLogonType, dwLogonProvider, phToken); | |
4471 } | |
4472 | 4444 |
4473 /* Error if LogonUserEx used: HST: new? -- needs review */ | 4445 /* Error if LogonUserEx used: HST: new? -- needs review */ |
4474 | 4446 |
4475 /* Error if CreateProcessWithLogon used: Function needs review to determine how to handle it */ | 4447 /* Error if CreateProcessWithLogon used: Function needs review to determine how to handle it */ |
4476 | 4448 |