Does it even matter if VS recognizes it? This is just so CFFI knows how to map it back to Python isn't it? The generated code shouldn't mention the typedef or the uintptr_t type.