mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 06:57:08 +00:00
[Win32k]
- Implement get atom name for user32. svn path=/trunk/; revision=54044
This commit is contained in:
parent
67a1cadac9
commit
52690510da
|
@ -1825,7 +1825,7 @@ DWORD
|
|||
NTAPI
|
||||
NtUserGetAtomName(
|
||||
ATOM nAtom,
|
||||
LPWSTR lpBuffer);
|
||||
PUNICODE_STRING pBuffer);
|
||||
|
||||
UINT
|
||||
NTAPI
|
||||
|
|
|
@ -628,16 +628,6 @@ NtUserGetAppImeLevel(
|
|||
return 0;
|
||||
}
|
||||
|
||||
DWORD
|
||||
APIENTRY
|
||||
NtUserGetAtomName(
|
||||
ATOM nAtom,
|
||||
LPWSTR lpBuffer)
|
||||
{
|
||||
STUB;
|
||||
return 0;
|
||||
}
|
||||
|
||||
DWORD
|
||||
APIENTRY
|
||||
NtUserGetImeInfoEx(
|
||||
|
|
|
@ -78,4 +78,27 @@ IntAddGlobalAtom(LPWSTR lpBuffer, BOOL PinAtom)
|
|||
return Atom;
|
||||
}
|
||||
|
||||
DWORD
|
||||
APIENTRY
|
||||
NtUserGetAtomName(
|
||||
ATOM nAtom,
|
||||
PUNICODE_STRING pBuffer)
|
||||
{
|
||||
DWORD Ret;
|
||||
UNICODE_STRING CapturedName = {0};
|
||||
UserEnterShared();
|
||||
_SEH2_TRY
|
||||
{
|
||||
CapturedName = ProbeForReadUnicodeString(pBuffer);
|
||||
Ret = IntGetAtomName((RTL_ATOM)nAtom, CapturedName.Buffer, (ULONG)CapturedName.Length);
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
Ret = 0;
|
||||
}
|
||||
_SEH2_END
|
||||
UserLeave();
|
||||
return Ret;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue