Skip to content

Commit dc0433f

Browse files
committed
[SDK] Add some missing headers
1 parent 1c5ddc8 commit dc0433f

File tree

9 files changed

+258
-0
lines changed

9 files changed

+258
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ Enable this if the module uses typeid or dynamic_cast. You will probably need to
312312
sdk/include
313313
sdk/include/psdk
314314
sdk/include/dxsdk
315+
sdk/include/winrt
315316
${REACTOS_BINARY_DIR}/sdk/include
316317
${REACTOS_BINARY_DIR}/sdk/include/psdk
317318
${REACTOS_BINARY_DIR}/sdk/include/dxsdk

sdk/include/psdk/appmodel.h

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Windows AppModel definitions
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
typedef enum AppPolicyProcessTerminationMethod
15+
{
16+
AppPolicyProcessTerminationMethod_ExitProcess = 0,
17+
AppPolicyProcessTerminationMethod_TerminateProcess = 1,
18+
} AppPolicyProcessTerminationMethod;
19+
20+
typedef enum AppPolicyThreadInitializationType
21+
{
22+
AppPolicyThreadInitializationType_None = 0,
23+
AppPolicyThreadInitializationType_InitializeWinRT = 1,
24+
} AppPolicyThreadInitializationType;
25+
26+
typedef enum AppPolicyShowDeveloperDiagnostic
27+
{
28+
AppPolicyShowDeveloperDiagnostic_None = 0,
29+
AppPolicyShowDeveloperDiagnostic_ShowUI = 1,
30+
} AppPolicyShowDeveloperDiagnostic;
31+
32+
typedef enum AppPolicyWindowingModel
33+
{
34+
AppPolicyWindowingModel_None = 0,
35+
AppPolicyWindowingModel_Universal = 1,
36+
AppPolicyWindowingModel_ClassicDesktop = 2,
37+
AppPolicyWindowingModel_ClassicPhone = 3
38+
} AppPolicyWindowingModel;
39+
40+
WINBASEAPI
41+
_Check_return_
42+
_Success_(return == ERROR_SUCCESS)
43+
LONG
44+
WINAPI
45+
AppPolicyGetProcessTerminationMethod(
46+
_In_ HANDLE processToken,
47+
_Out_ AppPolicyProcessTerminationMethod* policy);
48+
49+
WINBASEAPI
50+
_Check_return_
51+
_Success_(return == ERROR_SUCCESS)
52+
LONG
53+
WINAPI
54+
AppPolicyGetThreadInitializationType(
55+
_In_ HANDLE processToken,
56+
_Out_ AppPolicyThreadInitializationType* policy);
57+
58+
WINBASEAPI
59+
_Check_return_
60+
_Success_(return == ERROR_SUCCESS)
61+
LONG
62+
WINAPI
63+
AppPolicyGetShowDeveloperDiagnostic(
64+
_In_ HANDLE processToken,
65+
_Out_ AppPolicyShowDeveloperDiagnostic* policy);
66+
67+
WINBASEAPI
68+
_Check_return_
69+
_Success_(return == ERROR_SUCCESS)
70+
LONG
71+
WINAPI
72+
AppPolicyGetWindowingModel(
73+
_In_ HANDLE processToken,
74+
_Out_ AppPolicyWindowingModel* policy);
75+
76+
#ifdef __cplusplus
77+
} // extern "C"
78+
#endif
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: API definitions for api-ms-win-core-processthreads-l1
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
WINBASEAPI
15+
BOOL
16+
WINAPI
17+
SetThreadStackGuarantee(
18+
_Inout_ PULONG StackSizeInBytes);
19+
20+
FORCEINLINE
21+
HANDLE
22+
GetCurrentThreadEffectiveToken(
23+
VOID)
24+
{
25+
return (HANDLE)(LONG_PTR)-6;
26+
}
27+
28+
#ifdef __cplusplus
29+
} // extern "C"
30+
#endif

sdk/include/psdk/stringapiset.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: API definitions for api-ms-win-core-string-l1
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
10+
#include <winnls.h>
11+
12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
16+
WINBASEAPI
17+
int
18+
WINAPI
19+
CompareStringEx(
20+
_In_opt_ LPCWSTR lpLocaleName,
21+
_In_ DWORD dwCmpFlags,
22+
_In_NLS_string_(cchCount1) LPCWCH lpString1,
23+
_In_ int cchCount1,
24+
_In_NLS_string_(cchCount2) LPCWCH lpString2,
25+
_In_ int cchCount2,
26+
_Reserved_ LPNLSVERSIONINFO lpVersionInformation,
27+
_Reserved_ LPVOID lpReserved,
28+
_Reserved_ LPARAM lParam);
29+
30+
#ifdef __cplusplus
31+
} // extern "C"
32+
#endif

sdk/include/psdk/synchapi.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: API definitions for api-ms-win-core-synch-l1
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
WINBASEAPI
15+
BOOL
16+
WINAPI
17+
InitializeCriticalSectionEx(
18+
_Out_ LPCRITICAL_SECTION lpCriticalSection,
19+
_In_ DWORD dwSpinCount,
20+
_In_ DWORD Flags);
21+
22+
#ifdef __cplusplus
23+
} // extern "C"
24+
#endif

sdk/include/psdk/sysinfoapi.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: API definitions for api-ms-win-core-sysinfo-l1
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
10+
#ifdef __cplusplus
11+
extern "C" {
12+
#endif
13+
14+
WINBASEAPI
15+
VOID
16+
WINAPI
17+
GetSystemTimePreciseAsFileTime(
18+
_Out_ LPFILETIME lpSystemTimeAsFileTime);
19+
20+
#ifdef __cplusplus
21+
} // extern "C"
22+
#endif

sdk/include/psdk/winbase.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ extern "C" {
1212
#endif
1313

1414
#include <libloaderapi.h>
15+
#include <sysinfoapi.h>
1516

1617
#ifdef _MSC_VER
1718
#pragma warning(push)
@@ -4170,4 +4171,8 @@ WCHAR * CDECL wine_get_dos_file_name(LPCSTR str);
41704171
#ifdef __cplusplus
41714172
}
41724173
#endif
4174+
4175+
#include <synchapi.h>
4176+
#include <processthreadsapi.h>
4177+
41734178
#endif /* _WINBASE_H */

sdk/include/winrt/roapi.h

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: WinRT Runtime Object API
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
#define __ROAPI_H_
10+
11+
#include <sal.h>
12+
13+
#ifdef __cplusplus
14+
extern "C" {
15+
#endif
16+
17+
#ifdef _ROAPI_
18+
#define ROAPI
19+
#else
20+
#define ROAPI DECLSPEC_IMPORT
21+
#endif
22+
23+
typedef enum RO_INIT_TYPE
24+
{
25+
RO_INIT_SINGLETHREADED = 0,
26+
RO_INIT_MULTITHREADED = 1,
27+
} RO_INIT_TYPE;
28+
29+
ROAPI
30+
_Check_return_
31+
HRESULT
32+
WINAPI
33+
RoInitialize(
34+
_In_ RO_INIT_TYPE initType);
35+
36+
ROAPI
37+
void
38+
WINAPI
39+
RoUninitialize(void);
40+
41+
#ifdef __cplusplus
42+
} // extern "C"
43+
#endif
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* PROJECT: ReactOS SDK
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: WinRT core wrappers
5+
* COPYRIGHT: Copyright 2024 Timo Kreuzer ([email protected])
6+
*/
7+
8+
#pragma once
9+
#define _WRL_COREWRAPPERS_H_
10+
11+
#include <windows.h>
12+
#include <intsafe.h>
13+
#include <roapi.h>
14+
15+
#ifdef __cplusplus
16+
extern "C" {
17+
#endif
18+
19+
// TBD
20+
21+
#ifdef __cplusplus
22+
} // extern "C"
23+
#endif

0 commit comments

Comments
 (0)