A Python script that uses the official Windows Driver Kit DDI reference documentation sources or the official Win32 API reference documentation sources and stores them in a more convenient format, along with function prototypes which are scraped from the online documentation.
Scraped files:
nc-*.md
: Callbacksne-*.md
: Enumsnf-*.md
: Functionsni-*.md
: IOCTLsns-*.md
: Structs
Files which are intentionally ignored:
na-*.md
: Headersnl-*.md
: Classesnn-*.md
: Interfaces
NtWriteFile
<windows-driver-docs-ddi>\wdk-ddi-src\content\ntifs\nf-ntifs-ntwritefile.md
A markdown documentation file with YAML Front Matter metadata.
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/content/ntifs/nf-ntifs-ntwritefile
<output-folder>\ntifs\nf-ntifs-ntwritefile.md
Markdown file without the YAML Front Matter metadata.
<output-folder>\ntifs\nf-ntifs-ntwritefile.json
JSON file with metadata extracted from the YAML Front Matter.
<output-folder>\ntifs\nf-ntifs-ntwritefile.c
C file with the function prototype, scraped from the online documentation.
python scraper.py \
--input <windows-driver-docs-ddi> \
--output <output-folder> \
--content-path wdk-ddi-src/content \
--base-url https://learn.microsoft.com/windows-hardware/drivers/ddi/