Whew, still somewhat messy, but I managed to got most errors figured out. It seems a lot of files are always included by default, so to make sure you don't get lots of errors when opening windows ce .h files for reference, I created a separate VS Code config for the includes folder:
{
"configurations": [
{
"name": "WinCE 2.11 ARM",
"forcedInclude": [
"${workspaceFolder}/windef.h",
"${workspaceFolder}/types.h",
"${workspaceFolder}/wtypes.h",
"${workspaceFolder}/winnt.h",
"${workspaceFolder}/windows.h",
"${workspaceFolder}/ocidl.h",
"${workspaceFolder}/replfilt.h",
"${workspaceFolder}/ipexport.h",
"${workspaceFolder}/mmreg.h",
"${workspaceFolder}/stdlib.h",
"${workspaceFolder}/msgstor2.h"
],
"defines": [
"${default}",
"UNDER_CE",
"_X86_",
"_WCHAR_T_DEFINED"
],
"intelliSenseMode": "windows-msvc-x86",
"cppStandard": "c++98",
"cStandard": "c99"
}
],
"version": 4
}
It works great! As someone who has never done much with the regular windows API, it makes things 100x easier when I can quickly follow references, get to the root of typedefs and have fancy autocomplete features
