Skip to content

Commit 4354829

Browse files
authored
[PSDK][INCLUDE/WINE] Header changes needed for iphlpapi, shlwapi, advapi32, and kernel32 winetest syncs (reactos#8317)
- [INCLUDE/WINE] Add synced Wine headers for the iphlpapi winetest to use. This helps us slowly decouple our headers and wine's headers. - [PSDK] Add definitions we are missing for other winetest syncs. - [WINETESTS][APITESTS] Fix breaking changes, remove duplicate definitions for debugstr_guid.
1 parent 4fafe46 commit 4354829

File tree

28 files changed

+2977
-395
lines changed

28 files changed

+2977
-395
lines changed

dll/win32/kernelbase/wine/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,13 @@ static struct perf_provider *perf_provider_from_handle(HANDLE prov)
178178
/***********************************************************************
179179
* PerfCreateInstance (KERNELBASE.@)
180180
*/
181+
#ifdef __REACTOS__
182+
PERF_COUNTERSET_INSTANCE * WINAPI PerfCreateInstance( HANDLE handle, const GUID *guid,
183+
const WCHAR *name, ULONG id )
184+
#else
181185
PERF_COUNTERSET_INSTANCE WINAPI *PerfCreateInstance( HANDLE handle, const GUID *guid,
182186
const WCHAR *name, ULONG id )
187+
#endif
183188
{
184189
struct perf_provider *prov = perf_provider_from_handle( handle );
185190
struct counterset_template *template;

dll/win32/wbemprox/builtin.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3375,11 +3375,11 @@ static enum fill_status fill_networkadapterconfig( struct table *table, const st
33753375
DWORD size = 0, ret;
33763376
enum fill_status status = FILL_STATUS_UNFILTERED;
33773377

3378-
ret = GetAdaptersAddresses( AF_UNSPEC, GAA_FLAG_INCLUDE_ALL_GATEWAYS, NULL, NULL, &size );
3378+
ret = GetAdaptersAddresses( AF_UNSPEC, GAA_FLAG_INCLUDE_GATEWAYS, NULL, NULL, &size );
33793379
if (ret != ERROR_BUFFER_OVERFLOW) return FILL_STATUS_FAILED;
33803380

33813381
if (!(buffer = heap_alloc( size ))) return FILL_STATUS_FAILED;
3382-
if (GetAdaptersAddresses( AF_UNSPEC, GAA_FLAG_INCLUDE_ALL_GATEWAYS, NULL, buffer, &size ))
3382+
if (GetAdaptersAddresses( AF_UNSPEC, GAA_FLAG_INCLUDE_GATEWAYS, NULL, buffer, &size ))
33833383
{
33843384
heap_free( buffer );
33853385
return FILL_STATUS_FAILED;

modules/rostests/apitests/setupapi/devclass.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,6 @@
3939
static GUID test_class_guid = { 0x4d36e967, 0xe325, 0x11ce, { 0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18 } };
4040
static char test_class_name[MAX_CLASS_NAME_LEN] = "DiskDrive";
4141

42-
static const char *debugstr_guid(const GUID *guid)
43-
{
44-
static char guidSTR1[39];
45-
static char guidSTR2[39];
46-
char* guidSTR;
47-
static BOOL index;
48-
49-
if (!guid) return NULL;
50-
51-
index = !index;
52-
guidSTR = index ? guidSTR1 : guidSTR2;
53-
54-
snprintf(guidSTR, sizeof(guidSTR1),
55-
"{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
56-
guid->Data1, guid->Data2, guid->Data3,
57-
guid->Data4[0], guid->Data4[1], guid->Data4[2], guid->Data4[3],
58-
guid->Data4[4], guid->Data4[5], guid->Data4[6], guid->Data4[7]);
59-
return guidSTR;
60-
}
61-
6242
static void test_SetupDiBuildClassInfoList(void)
6343
{
6444
LPGUID guid_list = NULL;

modules/rostests/winetests/mscoree/debugging.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,6 @@ static HRESULT (WINAPI *pCreateDebuggingInterfaceFromVersion)(int, LPCWSTR, IUnk
3636

3737
const WCHAR v2_0[] = {'v','2','.','0','.','5','0','7','2','7',0};
3838

39-
static const char *debugstr_guid(REFIID riid)
40-
{
41-
static char buf[50];
42-
43-
if(!riid)
44-
return "(null)";
45-
46-
sprintf(buf, "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
47-
riid->Data1, riid->Data2, riid->Data3, riid->Data4[0],
48-
riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4],
49-
riid->Data4[5], riid->Data4[6], riid->Data4[7]);
50-
51-
return buf;
52-
}
53-
5439
static HRESULT WINAPI ManagedCallback2_QueryInterface(ICorDebugManagedCallback2 *iface, REFIID riid, void **ppv)
5540
{
5641
if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_ICorDebugManagedCallback2, riid))

modules/rostests/winetests/ole32/ole_server.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ static const struct
6060

6161
static LONG obj_ref, class_ref, server_locks;
6262

63-
static const char *debugstr_guid(const GUID *guid)
64-
{
65-
int i;
66-
67-
if (!guid) return "(null)";
68-
69-
for (i = 0; i < ARRAY_SIZE(guid_name); i++)
70-
{
71-
if (IsEqualIID(guid, guid_name[i].guid))
72-
return guid_name[i].name;
73-
}
74-
75-
return wine_dbgstr_guid(guid);
76-
}
77-
7863
/******************************* OLE server *******************************/
7964
typedef struct
8065
{

sdk/include/psdk/accctrl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ typedef enum _SE_OBJECT_TYPE
168168
SE_DS_OBJECT_ALL,
169169
SE_PROVIDER_DEFINED_OBJECT,
170170
SE_WMIGUID_OBJECT,
171-
SE_REGISTRY_WOW64_32KEY
171+
SE_REGISTRY_WOW64_32KEY,
172+
SE_REGISTRY_WOW64_64KEY
172173
} SE_OBJECT_TYPE;
173174

174175
typedef enum _TRUSTEE_TYPE

sdk/include/psdk/appmodel.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,32 @@ typedef enum AppPolicyWindowingModel
3737
AppPolicyWindowingModel_ClassicPhone = 3
3838
} AppPolicyWindowingModel;
3939

40+
typedef struct PACKAGE_VERSION
41+
{
42+
union
43+
{
44+
UINT64 Version;
45+
struct
46+
{
47+
USHORT Revision;
48+
USHORT Build;
49+
USHORT Minor;
50+
USHORT Major;
51+
} DUMMYSTRUCTNAME;
52+
} DUMMYUNIONNAME;
53+
} PACKAGE_VERSION;
54+
55+
typedef struct PACKAGE_ID
56+
{
57+
UINT32 reserved;
58+
UINT32 processorArchitecture;
59+
PACKAGE_VERSION version;
60+
PWSTR name;
61+
PWSTR publisher;
62+
PWSTR resourceId;
63+
PWSTR publisherId;
64+
} PACKAGE_ID;
65+
4066
WINBASEAPI
4167
_Check_return_
4268
_Success_(return == ERROR_SUCCESS)

sdk/include/psdk/delayloadhandler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ typedef struct _DELAYLOAD_INFO
4747
} DELAYLOAD_INFO, *PDELAYLOAD_INFO;
4848

4949
typedef PVOID (WINAPI *PDELAYLOAD_FAILURE_DLL_CALLBACK)(ULONG, PDELAYLOAD_INFO);
50+
typedef PVOID (WINAPI *PDELAYLOAD_FAILURE_SYSTEM_ROUTINE)(LPCSTR, LPCSTR);
5051

5152
#ifdef __cplusplus
5253
}

0 commit comments

Comments
 (0)