mirror of
https://github.com/reactos/reactos.git
synced 2025-06-30 13:21:23 +00:00
[ROSAUTOTEST][SDK] ROS detection for apitests (#7613)
This commit is contained in:
parent
4965d6a8ac
commit
32fad87a08
2 changed files with 4 additions and 4 deletions
|
@ -145,12 +145,10 @@ IsActiveSessionCountLimited()
|
|||
}
|
||||
|
||||
#ifdef __REACTOS__
|
||||
#include <mmtypes.h>
|
||||
VERSIONHELPERAPI
|
||||
IsReactOS()
|
||||
{
|
||||
// FIXME: Find a better method!
|
||||
WCHAR szWinDir[MAX_PATH];
|
||||
GetWindowsDirectoryW(szWinDir, _countof(szWinDir));
|
||||
return (wcsstr(szWinDir, L"ReactOS") != NULL);
|
||||
return *(UINT*)(MM_SHARED_USER_DATA_VA + PAGE_SIZE - sizeof(ULONG)) == 0x8EAC705;
|
||||
}
|
||||
#endif // __REACTOS__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue