Attached is the full release for the access program for the win32-docs.zip downloaded from GitHub:
https://github.com/MicrosoftDocs/win32
This provides a way to use and access documentation (mainly the API Names) from the GitHub documentation effort off-line, and searchable.
The documents can be viewed in the .md format or in a .html format. Searching is provided in the .md display, and of course intrinsically in the web browser viewing .html.
TimoVJL provided the code/method to search the win32 documentation for API NAMES from which I created a database and the rest of the program. See readme_v4.txt, for other external source code attributions.
It is possible that the MD_Files_3.db3 could be expanded in the future to include all topics in the win32-docs.zip and that would not require changing the basic program to be immediately useful. TBD
John Z
Sadly win32-docs have still a some problems and updates sometimes make more of them.
MS should make a checking code with or without AI.
MSDN xhtml isn't perfect for offline usage, as every documentations groups do things in their own way, so it is very messy for parsing.
Something went very wrong near year 2012.
I'm sure you are right based on prior findings. In the last 15 months it has only grown about 7Meg.
Not sure I want to reprocess it to update the MD_Files_3.db3 and MDFiles.exe I created for easily accessing the data...
Documentation access utilities like Hint, Hint_SA, MDFiles, don't see much interest by forum members. I might post Hint_SA on SourceForge with links back to Pelles Forum if someone wants the GPL'ed source code that is required to be provided.
John Z
P.S. There is not a 'bot'/'AI' excluded Open Source License yet either . . . theoretically a 'bot'/'AI' could request the source code from any GPL'ed project and the developer would be obligated to provide it.
I guess anything on GitHub/GitLab has already been absorbed
If MS don't give full keyword list, they don't even try to be helpful.
A that MessageBox keyword mystery is odd.
Microsoft should make a keyword list for every function and from where it found from their help sites and local versions.
A code for finding functions from a one folder#define WIN32_LEAN_AND_MEAN
//#include <stdio.h> // clang needs different stdio.h
#include <windows.h>
#pragma comment(lib, "kernel32.lib")
#pragma comment(lib, "user32.lib")
void CheckFile(char *szFile);
int __cdecl puts(const char *string); // clang needs different stdio.h
TCHAR szBuffer[4096];
int ScanDir(char *szDir)
{
WIN32_FIND_DATA fdFile;
HANDLE hFile;
//int i = 0;
int nLen = lstrlen(szDir);
lstrcpy(szDir+nLen, "*-flat.md");
// OutputDebugString(szDir);
hFile = FindFirstFile(szDir, &fdFile);
if (hFile != INVALID_HANDLE_VALUE)
do {
if ((fdFile.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
!= FILE_ATTRIBUTE_DIRECTORY) {
lstrcpy(szDir+nLen, fdFile.cFileName);
//puts(szDir);
//OutputDebugString(szDir);
CheckFile(szDir);
//i++;
}
} while (FindNextFile(hFile, &fdFile));
FindClose(hFile);
return 0;
}
void ParseField1(char *pStart, char *pEnd)
{
char *pPtr1 = pStart+2;
char *pPtr2 = szBuffer;
while (*pPtr1 != '|') { // until a new field separator
if (*pPtr1 != '\\') // avoid '\'
*pPtr2++ = *pPtr1;
if (*pPtr1 == ')') break; // end of function
pPtr1++;
}
*pPtr2++ = ';';
*pPtr2 = 0;
puts(szBuffer);
}
void CheckFile(char *szFile)
{
HANDLE hFile;
BYTE *pRows;
DWORD nMax, nRead;
hFile = CreateFile(szFile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
if (hFile != INVALID_HANDLE_VALUE)
{
nMax = GetFileSize(hFile, NULL);
pRows = HeapAlloc(GetProcessHeap(), 0, nMax + 1);
//if (nMax > sizeof(szBuffer)) nMax = sizeof(szBuffer); // read only header
if (ReadFile(hFile, pRows, nMax, &nRead, NULL)) {
TCHAR *pPtr1, *pPtr2; //, *pPtr3;
CloseHandle(hFile);
*(pRows + nMax) = 0; // ensure 0
pPtr1 = (char*)pRows;
while (*pPtr1 != '|') pPtr1++; // find first '|'
if (pPtr1) {
while (*pPtr1 != 10) {
pPtr2 = pPtr1;
while (*pPtr2 != 10) pPtr2++; // find end of line
*pPtr2 = 0; // cut line
if (*pPtr1 != 10 && *(pPtr1+1) != '-' && *(pPtr1+2) != 'F')
ParseField1(pPtr1, pPtr2);
pPtr1 = pPtr2+1;
if (!*pPtr1 || *pPtr1 == 10) break;
}
}
} else CloseHandle(hFile);
HeapFree(GetProcessHeap(), 0, pRows);
}
}
int main(int argc, char **argv) {
char szDir[MAX_PATH];
lstrcpy(szDir, "gdiplus/");
ScanDir(szDir);
return 0;
}
A markdown (.md) conversion to RTF could be useful for md-files,
as RichEdit component could show them visually.
Currently win32-docs are not good consistent material, but a testbed for them.
Sadly also a MSDN help file material is just a huge trashcan with too many kind of formattings, no coherent material.
A md-format was a good idea, from it could format many kind of other formats, like bloated xhtml.
QuoteCybersecurity researchers have uncovered a sophisticated malware campaign exploiting Microsoft Help Index Files (.mshi) to deliver the notorious PipeMagic backdoor, marking a significant evolution in the threat actors' tactics since the malware's first detection in 2022.
Quote from: TimoVJL on October 31, 2026, 03:51:10 PMA markdown (.md) conversion to RTF could be useful for md-files,
as RichEdit component could show them visually.
Currently win32-docs are not good consistent material, but a testbed for them.
Sadly also a MSDN help file material is just a huge trashcan with too many kind of formattings, no coherent material.
A md-format was a good idea, from it could format many kind of other formats, like bloated xhtml.
QuoteCybersecurity researchers have uncovered a sophisticated malware campaign exploiting Microsoft Help Index Files (.mshi) to deliver the notorious PipeMagic backdoor, marking a significant evolution in the threat actors' tactics since the malware's first detection in 2022.
MarkDown to RTF project here.
https://github.com/fabiov64/md2rtf (https://github.com/fabiov64/md2rtf)
Thanks Robert.
Quite small and only <br> haven't handled / removed from MS created files.
I took my earlier MD2HTML and converted it to MD2RTF.
It has most of the same functionality but not all, notably no "--dark" option.
One thing it does have is the ability to call it at the command line with a github RAW url.
MD2RTF https://raw.githubusercontent.com/MicrosoftDocs/win32/refs/heads/docs/desktop-src/Controls/about-combo-boxes.md
The app will resolve, download, and embed the images referenced in the github link. Pretty useful!
The zip contains a Pelles project, files, and a Samples folder with a half dozen that I created with this tool, just to give an idea of what it produces.
Have fun!
(( Added Later ))
The forum is not showing the 0.6MB zip, so I'm making it available here:
https://bcxbasiccoders.com/bcxusers/mrbcx/md2rtf_poc.zip
Quote from: MrBcx on November 02, 2026, 01:48:11 AMI took my earlier MD2HTML and converted it to MD2RTF.
It has most of the same functionality but not all, notably no "--dark" option.
One thing it does have is the ability to call it at the command line with a github RAW url.
MD2RTF https://raw.githubusercontent.com/MicrosoftDocs/win32/refs/heads/docs/desktop-src/Controls/about-combo-boxes.md
The app will resolve, download, and embed the images referenced in the github link. Pretty useful!
The zip contains a Pelles project, files, and a Samples folder with a half dozen that I created with this tool, just to give an idea of what it produces.
Have fun!
(( Added Later ))
The forum is not showing the 0.6MB zip, so I'm making it available here:
https://bcxbasiccoders.com/bcxusers/mrbcx/md2rtf_poc.zip
Thanks MrBcx, for both MD2HTML and MD2RTF. Very informative and useful.
Thanks MrBcx
md2rtf works well with MS Word, sadly not so well with Windows 7 RichEdit control, but in msftedit.dll looks good, but no pictures.
Quote from: TimoVJL on November 02, 2026, 09:29:02 AMThanks MrBcx
md2rtf works well with MS Word, sadly not so well with Windows 7 RichEdit control, but in msftedit.dll looks good, but no pictures.
I get slightly better results. The rtf files look great in
MSWord 2007 and inside the
BCX_RICHEDIT() control
( which uses
Msftedit.dll and the crucial classname "
RichEdit50W" ) and
the images are displayed in both cases.
Windows XP Wordpad displays okay but no images.
This is just a testbed for others.
This very slow example make filename list from win32-docs zip
and show it using md2rtf code (MrBcx).
A code have lot of bugs and needs cleaning.
Be patient while waiting, when it build file list to listbox.
Just select filename and doubleclick to see it in view window.
The win32-docs can be created by downloading zip from code at
https://github.com/MicrosoftDocs/win32 (https://github.com/MicrosoftDocs/win32)
WHViewMD[64].ini
[HelpZip]
File=C:\your path\win32-docs.zip
In WHViewMD_WS_a2.zip MiniUnZ code is included to project.
In WHViewMD_c_a3.zip RichEdit control is cleared before inserting new rtf page.
In WHViewMD_c_a4.zip use EM_SETTEXTEX and EN_LINK to show link string
Quote from: TimoVJL on November 02, 2026, 08:08:34 PMThis very slow example make filename list from win32-docs.zip
and show it using md2rtf code (MrBcx).
A code have lot of bugs and needs cleaning.
Be patient while waiting, when it build file list to listbox.
Just select filename and doubleclick to see it in view window.
WHViewMD[64].ini
[HelpZip]
File=C:\your path\win32-docs.zip
Your instructions are confusing.
Your url points to : https://win32-docs.zip
Attempting to rebuild the exe:
POLINK: fatal error: File not found: 'MiniUnZ64.lib'.
*** Error code: 1 ***
Done.
Quote from: MrBcx on November 02, 2026, 10:14:53 PMYour instructions are confusing.
Your url points to : https://win32-docs.zip
Attempting to rebuild the exe:
POLINK: fatal error: File not found: 'MiniUnZ64.lib'.
*** Error code: 1 ***
Done.
SMF makes a that silly url link from name.
MiniUnZ libs found in original message.
Thanks Timo, it's working for me now. The pages render sufficiently quick.
I'm still confused over what the main difference is between
WHViewMD_WS_a1
and
WHViewMD_WS_a2
Quote from: MrBcx on November 03, 2026, 12:07:26 AMThanks Timo, it's working for me now. The pages render sufficiently quick.
I'm still confused over what the main difference is between
WHViewMD_WS_a1
and
WHViewMD_WS_a2
WHViewMD_WS_a2 don't need MiniUnZ as unpacking code is include project.
Thanks for putting up with my questions :-)
I understand now ... I successfully rebuilt WHViewMD_WS_a2
If you're planning on embellishing the UI, I would start by adding a Search to
the Listbox, followed by changing to a larger font in the Listbox. Those 2 things
would make this a useful offline tool.
Quote from: TimoVJL on November 02, 2026, 08:08:34 PMThis very slow example make filename list from win32-docs zip
....
In WHViewMD_WS_a2.zip MiniUnZ code is included to project.
In WHViewMD_c_a3.zip RichEdit control is cleared before inserting new rtf page.
Very nice Timo! BTW slow is the reason I created a db for my version getting API functions.
It is not unbearable though.
I'll also mention that wordpad still works in Windows 25H2 for those interested. :)
John Z
It seems the .md to .rtf converter is incomplete.
Checking the web/AI this .md snippet is convertible to .rtf syntax -
<dl> <dt>
<span id="CFSTR_DSOBJECTNAMES"></span><span id="cfstr_dsobjectnames"></span>CFSTR_DSOBJECTNAMES </dt> <dd> <dl> <dt>
"DsObjectNames" </dt> <dt>
The CFSTR_DSOBJECTNAMES clipboard format is supported by the IDataObject provided by the ICommonQuery::OpenQueryWindow method. The CFSTR_DSOBJECTNAMES clipboard format provides a global memory handle (HGLOBAL) that contains DSOBJECTNAMES structure.
</dt> </dl> </dd> </dl>
is converted to this .rtf snippet
{\rtf1\ansi\deff0
{\bkmkstart CFSTR_DSOBJECTNAMES}{\bkmkend CFSTR_DSOBJECTNAMES}CFSTR_DSOBJECTNAMES\par
\par
\li360 "DsObjectNames"\par
The CFSTR_DSOBJECTNAMES clipboard format is supported by the IDataObject provided by the ICommonQuery::OpenQueryWindow method. The CFSTR_DSOBJECTNAMES clipboard format provides a global memory handle (HGLOBAL) that contains DSOBJECTNAMES structure.\par
}
is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags? Probably more readable...
John Z
Quote from: John Z on November 03, 2026, 12:25:47 PMIt seems the .md to .rtf converter is incomplete.
is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags? Probably more readable...
I worked a bit more with AI on the converter and mostly? got rid of those errant tags. It also converts internally
linked *.md into *.rtf, enabling some hyperlinking, which even when it works, mostly sucks on *.rtf files.
I converted the
entire win32-docs github repo to RTF and zipped it up. I removed the *.md to cut
down on zip filesize ( even so, it is still 373MB because RTF is rather bloaty )
https://bcxbasiccoders.com/bcxusers/mrbcx/win32-docs-RTF.zip
It might be useful to someone.
MrBcx, this is incredible! A huge task even if scripted. Also very nice of you to host such a large file.
I see the converter output is much improved. Hopefully your work will be widely useful.
John Z
Thanks MrBcx
A tool adapted to view RTF-files with msftedit.dll.
Now a current filename is in editbox for collecting info for files for testing, like with WordPad or MS Winword.
Quote from: MrBcx on November 04, 2026, 03:02:17 AMQuote from: John Z on November 03, 2026, 12:25:47 PMIt seems the .md to .rtf converter is incomplete.
is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags? Probably more readable...
I worked a bit more with AI on the converter and mostly? got rid of those errant tags. It also converts internally
linked *.md into *.rtf, enabling some hyperlinking, which even when it works, mostly sucks on *.rtf files.
I converted the entire win32-docs github repo to RTF and zipped it up. I removed the *.md to cut
down on zip filesize ( even so, it is still 373MB because RTF is rather bloaty )
https://bcxbasiccoders.com/bcxusers/mrbcx/win32-docs-RTF.zip
It might be useful to someone.
FYI -- Attached are my updated MD2RTF files that I used to create "win32-docs-RTF"
Quote from: MrBcx on November 04, 2026, 03:02:17 AMQuote from: John Z on November 03, 2026, 12:25:47 PMIt seems the .md to .rtf converter is incomplete.
is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags? Probably more readable...
I worked a bit more with AI on the converter and mostly? got rid of those errant tags. It also converts internally
linked *.md into *.rtf, enabling some hyperlinking, which even when it works, mostly sucks on *.rtf files.
I converted the entire win32-docs github repo to RTF and zipped it up. I removed the *.md to cut
down on zip filesize ( even so, it is still 373MB because RTF is rather bloaty )
https://bcxbasiccoders.com/bcxusers/mrbcx/win32-docs-RTF.zip
It might be useful to someone.
I suspect that in the .rtf files most of the 84000 plus broken hyperlinks to the Microsoft docs can be fixed by changing instances of
HYPERLINK "/windowsto
HYPERLINK "https://learn.microsoft.com/en-us/windows
Quote from: Robert on November 06, 2026, 07:32:31 AMI suspect that in the .rtf files most of the 84000 plus broken hyperlinks to the Microsoft docs can be fixed by changing instances of
HYPERLINK "/windows
to
HYPERLINK "https://learn.microsoft.com/en-us/windows
A while back I converted the entire 'controls' section of the GitHub docs into a .chm file, and a .cab file.
It is mentioned somewhere in the forum but hosted mainly at:
https://sourceforge.net/projects/windows-controls-api-docs/
because of the forums prior lower upload limit - but I attached the .chm version here now.
When doing that, for just that small section of the documents, there were 23,313 links and only 6138 were external HTTPS links. Only a few of the external ones didn't go to the MS Doc site.
John Z
Quote from: MrBcx on November 05, 2026, 10:24:22 PMFYI -- Attached are my updated MD2RTF files that I used to create "win32-docs-RTF"
Thanks very much MrBcx! I'm thinking of using this to update my MDFILES3 project to use actual RTF. Currently it shows the output in HTML and .MD (in an RTF control).
Thanks again for sharing,
John Z
https://forum.pellesc.de/index.php?topic=11608.msg41572#msg41572
Quote from: TimoVJL on November 04, 2026, 11:18:39 AMA tool adapted to view RTF-files with msftedit.dll.
Hi Timo,
I tried to build this but got this error:
Building WHViewRTF64.exe.
POLINK: fatal error: File not found: 'nocrt.lib'.
Is there a download for this?
Thanks,
John Z
Just take take of Omit default library name in objects and remove nocrt.lib from linker settings.
NoCrt libs aren't updated lately.
I try to scan a that win32-docs zip a some way:// keywords topic_type api_name: api_type: api_location:
static int ParseMemFile(char *pMem, int nSize, char *szFile)
{
char *pPtr, *pPtr1, *pPtr2, *pPtr3;
pPtr = strstr(pMem, "keywords:");
if (!pPtr) return 1; // no keywords
pPtr = strstr(pMem, "topic_type:");
if (!pPtr) return 2; // no topics
pPtr = strstr(pMem, "api_name:"); // CRT
//pPtr = StrStr(pMem, "api_name:"); // shlwapi.dll
if (pPtr) {
pPtr3 = strstr(pPtr, "api_type:"); // end of names
printf("%s\t", szFile);
pPtr += 9; // pass
while (*pPtr != 10) pPtr++;
pPtr++;
pPtr1 = pPtr;
pPtr2 = pPtr;
//*(pPtr+10) = 0;
if (pPtr2 < pPtr3) { // avoid empty string
do {
while (*pPtr2 != 10) pPtr2++;
*pPtr2 = 0; // cut to newline
printf("%s ", pPtr1);
pPtr2++;
pPtr1 = pPtr2;
if (pPtr2 > pPtr3) break;
} while (*pPtr2 == '-');
}
printf("\n");
} //else printf("%s\n", szFile);
return 0;
}
Thanks Timo, will do.
John Z
Quote from: Robert on November 06, 2026, 07:32:31 AMQuote from: MrBcx on November 04, 2026, 03:02:17 AMQuote from: John Z on November 03, 2026, 12:25:47 PMIt seems the .md to .rtf converter is incomplete.
is it worthwhile to convert and get rid of all the loose <dt,dd,dl> tags? Probably more readable...
I worked a bit more with AI on the converter and mostly? got rid of those errant tags. It also converts internally
linked *.md into *.rtf, enabling some hyperlinking, which even when it works, mostly sucks on *.rtf files.
I converted the entire win32-docs github repo to RTF and zipped it up. I removed the *.md to cut
down on zip filesize ( even so, it is still 373MB because RTF is rather bloaty )
https://bcxbasiccoders.com/bcxusers/mrbcx/win32-docs-RTF.zip
It might be useful to someone.
I suspect that in the .rtf files most of the 84000 plus broken hyperlinks to the Microsoft docs can be fixed by changing instances of
HYPERLINK "/windows
to
HYPERLINK "https://learn.microsoft.com/en-us/windows
For a complete offline experience, instead of linking to the online source,
it would be better to include the archive at
https://github.com/MicrosoftDocs/sdk-api/tree/docs (https://github.com/MicrosoftDocs/sdk-api/tree/docs)
and link to the function docs in it instead.
sdk-api has the docs for standard Windows header functions like CreateWindowExA, CharUpperW etc.
@Robert
Thanks for a link to another complicated MS help site.
Pehaps from it is possible to create a F1 keyword list.
There will be a lot 404 page not found help pages.
EDIT 2026-11-07:62198 files 147406 keywords 40529 msdirected to file:62198 files 147406 keywords 27690 ms