I'm trying to read memory using the __readgsqword
function in Visual Studio 2017 and I get an error saying that identifier __readgsqword
is undefined even though I have already included intrin.h.
#include "stdafx.h"
#include <intrin.h>
int main()
{
__readgsqword(88);
return 0;
}
I don't understand why it says undefined even though it is defined inside of intrin.h
It's only available in x64 mode. If you haven't changed the CPU architecture in the solution, it won't be available.