- Implement get atom name for user32.


svn path=/trunk/; revision=54044
This commit is contained in:
James Tabor 2011-10-07 13:56:25 +00:00
parent 67a1cadac9
commit 52690510da
3 changed files with 24 additions and 11 deletions

View file

@ -1825,7 +1825,7 @@ DWORD
NTAPI
NtUserGetAtomName(
ATOM nAtom,
LPWSTR lpBuffer);
PUNICODE_STRING pBuffer);
UINT
NTAPI

View file

@ -628,16 +628,6 @@ NtUserGetAppImeLevel(
return 0;
}
DWORD
APIENTRY
NtUserGetAtomName(
ATOM nAtom,
LPWSTR lpBuffer)
{
STUB;
return 0;
}
DWORD
APIENTRY
NtUserGetImeInfoEx(

View file

@ -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 */