News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#71
User contributions / Re: Hint_SA (Standalone)
Last post by John Z - November 09, 2026, 12:02:03 PM
Quote from: TimoVJL on October 25, 2026, 12:09:18 PMFrankie's fGdiPlusFlat.h would be a good addition.

This new version 3.0.0 of Hint_SA now includes the GDI+Flat functions with an updated db3.  It can also access the included GDIPlus.chm to display more information about a function, just like when accessing Win32.chm.

This post is only the program and does not include win32.chm which will need to be acquired elsewhere and placed into the program directory. The Hint_SA.chm help file has download sources for win32.chm.

Project source code will be posted soon too.


John Z

The new win32_functions.db3 will also work with Hint_SA version 2 however accessing the GDIPlus.chm file will not.

#72
User contributions / DynSQLite Library - SQLite sup...
Last post by Michele - November 09, 2026, 12:12:02 AM
Finally I release a beta version of DynSQLite in hope that its features are of any use.

DynSQLite is a C library designed for native Win32 applications, providing a comprehensive database workbench and browser engine. It enables developers and users to manage multi-database environments concurrently through a modern, fully modeless architecture.
This is a Beta release.

CORE DATABASE MANAGEMENT & INSPECTION FEATURES:
  • Multi-Database Workspaces (HCDBCONTEXT): Seamlessly open, switch, and manage multiple concurrent database connections and file contexts on the fly with real-time broadcasting mechanisms like WM_MSQL_DB_EVENT and WM_MSQL_CTX_RENEWED.
  • Schema Browsing & Virtual Listview Engines: High-performance virtual listview browsers (MsqlCreateBrowserControl, MsqlAttachBrowserMetadata) supporting real-time schema swapping, custom text filtering, pattern matching, and collation rules.
  • Comprehensive Schema Inspection: Detailed descriptor abstractions for tables, views, triggers, and columns (MsqlGetTableDescriptor, MsqlGetViewDescriptor, MsqlGetTriggerDescriptor, MsqlGetColumnDescriptor), providing granular access to field types, count metrics, and table properties.
  • Data Inspection & CRUD Operations: Advanced data browser capabilities including hex data inspection for BLOB fields, image rendering pipelines, record deletion protocols (MsqlDeleteRecord), and customized event hooks via fnMsqlCrudCallback.

SCHEMA DEFINITION & STRUCTURAL MODIFICATION:
  • Table & Object Lifecycle Management: Complete programmatic control to create, alter, and drop database objects, including dedicated prompts and helpers for table alterations (MsqlPromptAndAlterTable, MsqlAlterTable), table creation (MsqlPromptAndCreateTable), and object deletion (MsqlDropObject).
  • Triggers & Extensions: Built-in automated helper utilities such as MsqlCreateUpdateTimeTrigger for updating timestamps, along with full runtime support for loading SQLite extensions and checking extension function availability (MsqlLoadExtension, MsqlIsExtensionFunctionAvailable).

ROBUST DATA INTERCHANGE (IMPORT & EXPORT):
  • Multi-Format Export Engine: Export query results and result sets directly to CSV, JSON, SQL, and XML formats, featuring dedicated utility workflows like MsqlExportQueryResults, MsqlExportTableToCsv, MsqlExportTableToSql, MsqlExportTableToJson, MsqlExportTableToXml, and interactive prompt wrappers.
  • Flexible Data Importers: Comprehensive ingestion tools to parse and import CSV, JSON, XML, and SQL dump structures directly into target tables via functions like MsqlImportDataFile, MsqlImportCsvToTable, and MsqlPromptAndImportData.

SQL QUERY WORKBENCH & EXECUTION:
  • Interactive Query Workbench: Fully independent modeless SQL query editor interfaces (MsqlSqlQueryWorkbench) allowing complex query drafting, validation, execution, and dynamic result set visualization across multiple active database contexts.

MODERN WIN32 ARCHITECTURE & WINDOW MANAGEMENT:
  • Modeless-First Design: Completely asynchronous, long-lived popup windows that allow concurrent interaction across multiple database workbenches without blocking the host application.
  • Active Desktop Workspace Tiling & Cascading: Custom layout engines (MsqlTileManagedWindows, MsqlCascadeManagedWindows) that calculate precise coordinates against the active desktop work area (SPI_GETWORKAREA), tiling and cascading workbenches cleanly above the taskbar.
  • Thread-Safe Registry & Menu Integration: Robust critical-section thread protection for active window states, accompanied by clean public API hooks (MsqlGetManagedWindowCount, MsqlGetManagedWindowInfo) to dynamically populate host window menus with live titles and checkmarks.

The library is available for download on sourceforge.net, download the workspace here.

Actually PellesC site doesn't allow to load the files (gives an error and ask to refer to the administrator), when, and if, it will allow to load the workspace zip I'll upload it here also.
#73
Assembly discussions / Re: Retrieving the size of a f...
Last post by Vortex - November 08, 2026, 10:16:46 PM
Hi Timo,

Thanks. Here is WIN32_FILE_ATTRIBUTE_DATA structure :

typedef struct _WIN32_FILE_ATTRIBUTE_DATA {
  DWORD    dwFileAttributes;
  FILETIME ftCreationTime;
  FILETIME ftLastAccessTime;
  FILETIME ftLastWriteTime;
  DWORD    nFileSizeHigh;
  DWORD    nFileSizeLow;
} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;
#74
Assembly discussions / Re: Retrieving the size of a f...
Last post by TimoVJL - November 08, 2026, 10:10:39 PM
GetFileAttributesEx is simpler, but have an own features.

EDIT: function name fixed.

Also using FindFirstFileEx with FindExInfoBasic, if short name isn't needed.
A FindFirstFile is just a wrap function to FindFirstFileEx.

GetFileAttributesEx fails with "C:/pagefile.sys" with sharing error,
FindFirstFile not.
#75
Assembly discussions / Retrieving the size of a file
Last post by Vortex - November 08, 2026, 09:17:14 PM
Enhanced version of the filesize function from the Masm32 library :
.386
.model flat,stdcall
option casemap:none

include filesize.inc

.code

filesize PROC lpszFileName:DWORD

LOCAL wfd:WIN32_FIND_DATA

    invoke  FindFirstFile,lpszFileName,ADDR wfd
    cmp     eax,INVALID_HANDLE_VALUE
    jz      fsEnd 

    invoke  FindClose,eax

    mov     eax,wfd.nFileSizeLow

fsEnd:

    ret

filesize ENDP

END
#76
Assembly discussions / Re: Enumerating top level wind...
Last post by Vortex - November 07, 2026, 08:45:48 PM
Here is the 64-bit version.
#77
Tips & tricks / Disasm tool
Last post by Vortex - November 07, 2026, 09:26:22 AM
QuoteDisAsm for Windows. It's not IDA or HIEW, it's not meant to be. But for an 'objdump -d' like, minimum fuss tool that can disassemble the three most common architectures plus a bit more besides, and is completely independent of Visual Studio to boot, it's a perfectly acceptable tool.
Usage

Usage: disasm module [Function] [options]

Where module is a Windows PE File (exe, dll, ocx, sys, scr, etc)

[Function] is an optional argument specifying a single function to show the disassembly of. If you don't provide a function name, the contents of all PE sections marked as code or executable is shown.

[options] are optional and modify the disassembly output -b Adds the raw code bytes alongside the instruction that it makes up -l Adds the line number of the source file alongside the assembly (requires private symbols) -f Adds the file name of the source file alongside the assembly (requires private symbols)

There is no separate option for file output. All output is via stdout, so redirect that if you need a file.
https://www.airesoft.co.uk/disasm
#78
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 07, 2026, 12:12:57 AM
@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
#79
User contributions / Re: Offline GitHub MS Document...
Last post by Robert - November 06, 2026, 09:55:54 PM
Quote from: Robert on November 06, 2026, 07:32:31 AM
Quote from: MrBcx on November 04, 2026, 03:02:17 AM
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.



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

and link to the function docs in it instead.

sdk-api has the docs for standard Windows header functions like CreateWindowExA, CharUpperW etc.
#80
User contributions / Re: Offline GitHub MS Document...
Last post by John Z - November 06, 2026, 03:58:12 PM
Thanks Timo,  will do.

John Z