130 pSecurityDescriptor);
184 return (pWnd->
state & bit);
186 return (pWnd->
state2 & bit);
266 (
pEntry->type != uType) ||
424 if (UnicodeSize == -1)
434 MBSize = UnicodeSize * 2;
439 if (SafeString ==
NULL)
441 *MBString = SafeString;
462 MBSize =
strlen(MBString)+1;
464 if (UnicodeSize == -1)
470 UnicodeSize = MBSize;
475 if (SafeString ==
NULL)
479 UnicodeSize *=
sizeof(
WCHAR);
ACPI_SIZE strlen(const char *String)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
#define ERROR_NOT_ENOUGH_MEMORY
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_HANDLE
#define WideCharToMultiByte
#define MultiByteToWideChar
static DWORD DWORD * dwLength
#define ValidateHwnd(hwnd)
#define ValidateHwndNoErr(hwnd)
static PVOID FASTCALL DesktopPtrToUser(PVOID ptr)
_In_ uint64_t _In_ uint64_t _In_ uint64_t generation
GLuint GLuint GLsizei GLenum type
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define HANDLEENTRY_INDESTROY
@ THREADSTATE_GETTHREADINFO
#define HANDLEENTRY_DESTROY
DWORD_PTR NTAPI NtUserQueryWindow(HWND hWnd, DWORD Index)
#define GetWin32ClientInfo()
#define QUERY_WINDOW_UNIQUE_PROCESS_ID
#define FIRST_USER_HANDLE
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
DWORD * PSECURITY_INFORMATION
unsigned __int3264 UINT_PTR
_Use_decl_annotations_ NTSTATUS NTAPI RtlUnicodeToMultiByteN(_Out_ PCHAR MbString, _In_ ULONG MbSize, _Out_opt_ PULONG ResultSize, _In_ PCWCH UnicodeString, _In_ ULONG UnicodeSize)
_Use_decl_annotations_ NTSTATUS NTAPI RtlMultiByteToUnicodeN(_Out_ PWCH UnicodeString, _In_ ULONG UnicodeSize, _Out_opt_ PULONG ResultSize, _In_ PCCH MbString, _In_ ULONG MbSize)
struct _THREADINFO * PTHREADINFO
NTSTATUS NTAPI NtQuerySecurityObject(IN HANDLE Handle, IN SECURITY_INFORMATION SecurityInformation, OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN ULONG Length, OUT PULONG ResultLength)
NTSTATUS WINAPI NtSetSecurityObject(HANDLE Handle, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR SecurityDescriptor)
PUSER_HANDLE_ENTRY gHandleEntries
static __inline PVOID SharedPtrToUser(PVOID Ptr)
static __inline PDESKTOPINFO GetThreadDesktopInfo(VOID)
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
PTHREADINFO GetW32ThreadInfo(VOID)
DWORD_PTR APIENTRY NtUserGetThreadState(DWORD Routine)
PUSER_HANDLE_TABLE gHandleTable
PWND FASTCALL GetThreadDesktopWnd(VOID)
BOOL WINAPI SetUserObjectSecurity(IN HANDLE hObject, IN PSECURITY_INFORMATION pSecurityInfo, IN PSECURITY_DESCRIPTOR pSecurityDescriptor)
BOOL WINAPI IsGUIThread(BOOL bConvert)
static const BOOL g_ObjectHeapTypeShared[TYPE_CTYPES]
DWORD WINAPI MBToWCSEx(WORD CodePage, LPSTR MBString, LONG MBSize, LPWSTR *UnicodeString, LONG UnicodeSize, BOOL Allocate)
VOID WINAPI UserSetLastError(IN DWORD dwErrCode)
PVOID FASTCALL ValidateHandle(HANDLE handle, UINT uType)
VOID WINAPI UserSetLastNTError(IN NTSTATUS Status)
PVOID FASTCALL ValidateHandleNoErr(HANDLE handle, UINT uType)
BOOL WINAPI GetUserObjectSecurity(IN HANDLE hObject, IN PSECURITY_INFORMATION pSecurityInfo, OUT PSECURITY_DESCRIPTOR pSecurityDescriptor, IN DWORD dwLength, OUT PDWORD pdwLengthNeeded)
PWND FASTCALL ValidateHwndOrDesk(HWND hwnd)
BOOL FASTCALL TestWindowProcess(PWND Wnd)
DWORD WINAPI WCSToMBEx(WORD CodePage, LPWSTR UnicodeString, LONG UnicodeSize, LPSTR *MBString, LONG MBSize, BOOL Allocate)
PUSER_HANDLE_ENTRY FASTCALL GetUser32Handle(HANDLE handle)
BOOL FASTCALL TestState(PWND pWnd, UINT Flag)
PCALLPROCDATA FASTCALL ValidateCallProc(HANDLE hCallProc)
#define ERROR_INVALID_ACCEL_HANDLE
#define ERROR_INVALID_DWP_HANDLE
#define ERROR_INVALID_MENU_HANDLE
#define ERROR_INVALID_WINDOW_HANDLE
#define ERROR_INVALID_CURSOR_HANDLE
#define ERROR_INVALID_HOOK_HANDLE
_In_opt_ PALLOCATE_FUNCTION Allocate
_Out_ PCLIENT_ID ClientId