mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[SDK] Add some missing headers
This commit is contained in:
parent
1c5ddc893a
commit
dc0433f02a
9 changed files with 258 additions and 0 deletions
|
@ -312,6 +312,7 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
|
||||||
sdk/include
|
sdk/include
|
||||||
sdk/include/psdk
|
sdk/include/psdk
|
||||||
sdk/include/dxsdk
|
sdk/include/dxsdk
|
||||||
|
sdk/include/winrt
|
||||||
${REACTOS_BINARY_DIR}/sdk/include
|
${REACTOS_BINARY_DIR}/sdk/include
|
||||||
${REACTOS_BINARY_DIR}/sdk/include/psdk
|
${REACTOS_BINARY_DIR}/sdk/include/psdk
|
||||||
${REACTOS_BINARY_DIR}/sdk/include/dxsdk
|
${REACTOS_BINARY_DIR}/sdk/include/dxsdk
|
||||||
|
|
78
sdk/include/psdk/appmodel.h
Normal file
78
sdk/include/psdk/appmodel.h
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: Windows AppModel definitions
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef enum AppPolicyProcessTerminationMethod
|
||||||
|
{
|
||||||
|
AppPolicyProcessTerminationMethod_ExitProcess = 0,
|
||||||
|
AppPolicyProcessTerminationMethod_TerminateProcess = 1,
|
||||||
|
} AppPolicyProcessTerminationMethod;
|
||||||
|
|
||||||
|
typedef enum AppPolicyThreadInitializationType
|
||||||
|
{
|
||||||
|
AppPolicyThreadInitializationType_None = 0,
|
||||||
|
AppPolicyThreadInitializationType_InitializeWinRT = 1,
|
||||||
|
} AppPolicyThreadInitializationType;
|
||||||
|
|
||||||
|
typedef enum AppPolicyShowDeveloperDiagnostic
|
||||||
|
{
|
||||||
|
AppPolicyShowDeveloperDiagnostic_None = 0,
|
||||||
|
AppPolicyShowDeveloperDiagnostic_ShowUI = 1,
|
||||||
|
} AppPolicyShowDeveloperDiagnostic;
|
||||||
|
|
||||||
|
typedef enum AppPolicyWindowingModel
|
||||||
|
{
|
||||||
|
AppPolicyWindowingModel_None = 0,
|
||||||
|
AppPolicyWindowingModel_Universal = 1,
|
||||||
|
AppPolicyWindowingModel_ClassicDesktop = 2,
|
||||||
|
AppPolicyWindowingModel_ClassicPhone = 3
|
||||||
|
} AppPolicyWindowingModel;
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
_Check_return_
|
||||||
|
_Success_(return == ERROR_SUCCESS)
|
||||||
|
LONG
|
||||||
|
WINAPI
|
||||||
|
AppPolicyGetProcessTerminationMethod(
|
||||||
|
_In_ HANDLE processToken,
|
||||||
|
_Out_ AppPolicyProcessTerminationMethod* policy);
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
_Check_return_
|
||||||
|
_Success_(return == ERROR_SUCCESS)
|
||||||
|
LONG
|
||||||
|
WINAPI
|
||||||
|
AppPolicyGetThreadInitializationType(
|
||||||
|
_In_ HANDLE processToken,
|
||||||
|
_Out_ AppPolicyThreadInitializationType* policy);
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
_Check_return_
|
||||||
|
_Success_(return == ERROR_SUCCESS)
|
||||||
|
LONG
|
||||||
|
WINAPI
|
||||||
|
AppPolicyGetShowDeveloperDiagnostic(
|
||||||
|
_In_ HANDLE processToken,
|
||||||
|
_Out_ AppPolicyShowDeveloperDiagnostic* policy);
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
_Check_return_
|
||||||
|
_Success_(return == ERROR_SUCCESS)
|
||||||
|
LONG
|
||||||
|
WINAPI
|
||||||
|
AppPolicyGetWindowingModel(
|
||||||
|
_In_ HANDLE processToken,
|
||||||
|
_Out_ AppPolicyWindowingModel* policy);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
30
sdk/include/psdk/processthreadsapi.h
Normal file
30
sdk/include/psdk/processthreadsapi.h
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: API definitions for api-ms-win-core-processthreads-l1
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
SetThreadStackGuarantee(
|
||||||
|
_Inout_ PULONG StackSizeInBytes);
|
||||||
|
|
||||||
|
FORCEINLINE
|
||||||
|
HANDLE
|
||||||
|
GetCurrentThreadEffectiveToken(
|
||||||
|
VOID)
|
||||||
|
{
|
||||||
|
return (HANDLE)(LONG_PTR)-6;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
32
sdk/include/psdk/stringapiset.h
Normal file
32
sdk/include/psdk/stringapiset.h
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: API definitions for api-ms-win-core-string-l1
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <winnls.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
int
|
||||||
|
WINAPI
|
||||||
|
CompareStringEx(
|
||||||
|
_In_opt_ LPCWSTR lpLocaleName,
|
||||||
|
_In_ DWORD dwCmpFlags,
|
||||||
|
_In_NLS_string_(cchCount1) LPCWCH lpString1,
|
||||||
|
_In_ int cchCount1,
|
||||||
|
_In_NLS_string_(cchCount2) LPCWCH lpString2,
|
||||||
|
_In_ int cchCount2,
|
||||||
|
_Reserved_ LPNLSVERSIONINFO lpVersionInformation,
|
||||||
|
_Reserved_ LPVOID lpReserved,
|
||||||
|
_Reserved_ LPARAM lParam);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
24
sdk/include/psdk/synchapi.h
Normal file
24
sdk/include/psdk/synchapi.h
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: API definitions for api-ms-win-core-synch-l1
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
BOOL
|
||||||
|
WINAPI
|
||||||
|
InitializeCriticalSectionEx(
|
||||||
|
_Out_ LPCRITICAL_SECTION lpCriticalSection,
|
||||||
|
_In_ DWORD dwSpinCount,
|
||||||
|
_In_ DWORD Flags);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
22
sdk/include/psdk/sysinfoapi.h
Normal file
22
sdk/include/psdk/sysinfoapi.h
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: API definitions for api-ms-win-core-sysinfo-l1
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
WINBASEAPI
|
||||||
|
VOID
|
||||||
|
WINAPI
|
||||||
|
GetSystemTimePreciseAsFileTime(
|
||||||
|
_Out_ LPFILETIME lpSystemTimeAsFileTime);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
|
@ -12,6 +12,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <libloaderapi.h>
|
#include <libloaderapi.h>
|
||||||
|
#include <sysinfoapi.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
|
@ -4170,4 +4171,8 @@ WCHAR * CDECL wine_get_dos_file_name(LPCSTR str);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <synchapi.h>
|
||||||
|
#include <processthreadsapi.h>
|
||||||
|
|
||||||
#endif /* _WINBASE_H */
|
#endif /* _WINBASE_H */
|
||||||
|
|
43
sdk/include/winrt/roapi.h
Normal file
43
sdk/include/winrt/roapi.h
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: WinRT Runtime Object API
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#define __ROAPI_H_
|
||||||
|
|
||||||
|
#include <sal.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef _ROAPI_
|
||||||
|
#define ROAPI
|
||||||
|
#else
|
||||||
|
#define ROAPI DECLSPEC_IMPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef enum RO_INIT_TYPE
|
||||||
|
{
|
||||||
|
RO_INIT_SINGLETHREADED = 0,
|
||||||
|
RO_INIT_MULTITHREADED = 1,
|
||||||
|
} RO_INIT_TYPE;
|
||||||
|
|
||||||
|
ROAPI
|
||||||
|
_Check_return_
|
||||||
|
HRESULT
|
||||||
|
WINAPI
|
||||||
|
RoInitialize(
|
||||||
|
_In_ RO_INIT_TYPE initType);
|
||||||
|
|
||||||
|
ROAPI
|
||||||
|
void
|
||||||
|
WINAPI
|
||||||
|
RoUninitialize(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
23
sdk/include/winrt/wrl/wrappers/corewrappers.h
Normal file
23
sdk/include/winrt/wrl/wrappers/corewrappers.h
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
* PROJECT: ReactOS SDK
|
||||||
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||||
|
* PURPOSE: WinRT core wrappers
|
||||||
|
* COPYRIGHT: Copyright 2024 Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#define _WRL_COREWRAPPERS_H_
|
||||||
|
|
||||||
|
#include <windows.h>
|
||||||
|
#include <intsafe.h>
|
||||||
|
#include <roapi.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// TBD
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
Loading…
Reference in a new issue