News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

win32-doc md files

Started by TimoVJL, May 19, 2025, 08:58:02 PM

Previous topic - Next topic

TimoVJL

https://github.com/MicrosoftDocs/win32

Not useful for local help

MS Win32 help files in md-format.

Test program just open zip-file and check all md-files for "api_name:" keywords.

At first might be better just to extract one folder and zip it again for testing.

One full test 58416 files.

Keyword test for first keyword in file
int ParseFile(char *pMem, int nSize, char *szFile, int nLen, int nIdx)
{
    char *pPtr, *pPtr1;
    //pPtr = strstr(pMem, "api_name:");    // CRT
    pPtr = StrStr(pMem, "api_name:");    // shlwapi.dll
    if (pPtr) {
        printf("%s\t", szFile);
        pPtr += 9;    // pass
        while (*pPtr != 10) pPtr++;
        pPtr++;
        pPtr1 = pPtr;
        while (*pPtr1 != 10) pPtr1++;
        *pPtr1 = 0;    // cut to newline
        printf("%s\n", pPtr);
    } else printf("%s\n", szFile);
    return 0;
}
May the source be with you