问题
TL;DR: Where do I find the MS source files that are referenced as d:\th\minkernel\crts\ucrt\...
when debugging in Visual Studio 2015.
I'm trying to debug into a CRT call to see what MS is actually doing, and unfortunately it seems the ucrt
source files are not available with an installation of VS2015. At least I cannot find these files in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src
at all.
Is the (mostly) full source set of the MS CRT still available somewhere as it used to be at least up to VS2010, or are some parts of the CRT now fully closed source?
回答1:
Answered on MSDN by RLWA32:
The ucrt source can be found under the Windows Kits folder. For example, in a 32 bit VM with VS2015 installed the path to the ucrt source is -
C:\Program Files\Windows Kits\10\Source\10.0.10240.0\ucrt
.You can find the path by examining the VC++ directories property for any C+ project -
$(VC_SourcePath)
This folder is in fact on Program Files (x86)
on my machine, but it's there.
I missed it, because there is another folder C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\...
and this one doesn't contain any sources.
来源:https://stackoverflow.com/questions/49048673/where-are-the-vs2015-ucrt-source-files