Signed-off-by: Brendan Shanks bshanks@codeweavers.com --- include/Makefile.in | 1 + include/processthreadsapi.h | 33 +++++++++++++++++++++++++++++++++ include/winbase.h | 1 + 3 files changed, 35 insertions(+) create mode 100644 include/processthreadsapi.h
diff --git a/include/Makefile.in b/include/Makefile.in index c99b0e1e1c1..de40421edcb 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -592,6 +592,7 @@ SOURCES = \ poppack.h \ powrprof.h \ prntvpt.h \ + processthreadsapi.h \ profinfo.h \ proofofpossessioncookieinfo.idl \ propidl.idl \ diff --git a/include/processthreadsapi.h b/include/processthreadsapi.h new file mode 100644 index 00000000000..8cdaff4796a --- /dev/null +++ b/include/processthreadsapi.h @@ -0,0 +1,33 @@ +/* + * Copyright 2021 Brendan Shanks for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef _PROCESSTHREADSAPI_H +#define _PROCESSTHREADSAPI_H + +#ifdef __cplusplus +extern "C" { +#endif + +WINBASEAPI HRESULT WINAPI GetThreadDescription(HANDLE,PWSTR *); +WINBASEAPI HRESULT WINAPI SetThreadDescription(HANDLE,PCWSTR); + +#ifdef __cplusplus +} +#endif + +#endif /* _PROCESSTHREADSAPI_H */ diff --git a/include/winbase.h b/include/winbase.h index 8e8a185b4ff..2f7287f12b6 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -40,6 +40,7 @@ extern "C" { #endif
#include <libloaderapi.h> +#include <processthreadsapi.h> #include <synchapi.h> #include <threadpoolapiset.h>