News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#21
Assembly discussions / Re: File downloader
Last post by John Z - December 19, 2025, 12:07:43 PM
Well ---

registry shows
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0

Attached images of two schannel.dll files on the system, looks like one 64 bit one 32 bit
One matches your version.

Searched registry did not locate TLS 1.2 anywhere

Is it possible to switch yours to SSL 2.0?

John Z
#22
Work in progress / USB microscope
Last post by TimoVJL - December 19, 2025, 11:08:54 AM
https://www.lidl.de/p/crivit-usb-digitalmikroskop/p100395031

This device didn't have any software with it's package, nor links for them.

Windows 7 DirectX can show this device, but i can't find an old  WebCAM code right now.

That device works in Windows 1x, but those apps aren't so good.

That device isn't allowed use by children under 8 years.

Perhaps more to come later.

Translation with Deepl
CRIVIT USB Digital Microscope

Features

    High-quality zoom lens with up to 1000x magnification
    With USB interface for direct transfer to your computer monitor
    Includes software for high-quality photo and video recording
    Dimmable ring light with 8 neutral white LEDs for optimal illumination
    Flexible use – handheld or via adjustable mini stand with practical clip mount
    1.36 m connection cable with USB-C plug incl. USB-A adapter
    Included accessories: mini stand, storage box, instructions
    Windows software in English, German, French, Spanish, Italian, Portuguese
    MacOS software in English
    Not suitable for children under 8 years of age

Translated with DeepL.com (free version)
#23
Assembly discussions / Re: File downloader
Last post by TimoVJL - December 19, 2025, 09:59:02 AM
Quote from: John Z on December 18, 2025, 03:26:58 PMIt works perfectly in Win 7 PRO.  Pro versions contain more intrinsic features than
other versions.  I still get security updates for Win 7 PRO too.  :)

John Z
What version is that a schannel.dll and is in register TLS 1.3 ?

I have dll 6.1.7601.24545 2020-01-03, that support TLS 1.2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2
#24
Assembly discussions / Re: File downloader
Last post by Vortex - December 18, 2025, 08:33:45 PM
Hi Timo,

Thanks for your code.

DownloadFile.exe http://www.pellesc.de/favicon.ico favicon.ico
This did not work on my Windows 7 Home Premium Sp1 64-bit
#25
Assembly discussions / Re: File downloader
Last post by John Z - December 18, 2025, 03:26:58 PM
Quote from: TimoVJL on December 18, 2025, 07:24:01 AMDownloadFile.exe http://www.pellesc.de/favicon.ico favicon.icoA https:// won't work in Windows 7, as missing TLS 1.3 support

Thanks for the link Timo!

It works perfectly in Win 7 PRO.  Pro versions contain more intrinsic features than
other versions.  I still get security updates for Win 7 PRO too.  :)

John Z
#26
Assembly discussions / Re: File downloader
Last post by TimoVJL - December 18, 2025, 07:24:01 AM
DownloadFile.exe http://www.pellesc.de/favicon.ico favicon.icoA https:// won't work in Windows 7, as missing TLS 1.3 support

A bit more code in C
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <wininet.h>
#pragma comment(lib, "wininet.lib")

#define BLOCK_SIZE 1024

int GetHTTPFile(TCHAR *szUrl, TCHAR *szFile)
{
    HINTERNET hInet;
    char aBuffer[BLOCK_SIZE];
    hInet = InternetOpen(TEXT(""), 0, 0, 0, 0);
    if (hInet) {
        HINTERNET hUrl= InternetOpenUrl(hInet, szUrl, 0, 0, 0, 0);
        if (hUrl) {
            HANDLE hFile = CreateFile(szFile,GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
            DWORD dwRead, dwWritten;
            do {
                if (!InternetReadFile(hUrl, &aBuffer, BLOCK_SIZE, &dwRead)) break;
                WriteFile(hFile, aBuffer, dwRead, &dwWritten, NULL);
            } while(dwRead);
            CloseHandle(hFile);
            InternetCloseHandle(hUrl);
        }
        InternetCloseHandle(hInet);
    }
    return 0;
}

int main(int argc, char **argv)
{
    GetHTTPFile("http://www.pellesc.de/favicon.ico", "favicon.ico");
    return 0;
}
#27
Assembly discussions / Re: File downloader
Last post by John Z - December 17, 2025, 10:58:58 PM
Quote from: Vortex on December 15, 2025, 07:36:59 PMAttached is the 64-bit version.

I can test on Win 7 PRO, but I need to know a location and file to try to download ....

John Z
#28
Assembly discussions / Re: File downloader
Last post by Vortex - December 17, 2025, 01:31:19 PM
You would probably have to install some hotfixes on Windows 7 and do some registry tweakings. Better is WinHTTP.

ChatGPT suggests :

You must install these (even if Win7 is "fully patched"):

Update   Purpose
KB3140245   Adds TLS 1.1 / 1.2 support to WinINet
KB3055973   SChannel improvements
#29
Assembly discussions / Re: File downloader
Last post by TimoVJL - December 17, 2025, 01:25:54 PM
Windows 7 WinInet just don't support latest TLS version.
#30
Assembly discussions / Re: File downloader
Last post by Vortex - December 16, 2025, 08:53:33 PM
Hi Timo,

Probably, I need to rewrite the application employing WinInet functions.