mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[Win32k]
- Implement get atom name for user32. svn path=/trunk/; revision=54044
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user