# \#winapi

**URL:** https://clarionhub.com/tag/winapi/125.md

[Latest](https://clarionhub.com/latest.md) · [Categories](https://clarionhub.com/categories.md) · [Tags](https://clarionhub.com/tags.md)

---

## [Win 32 API and Clarion versions 10 11 12 and Above](https://clarionhub.com/t/win-32-api-and-clarion-versions-10-11-12-and-above/8613)

<div class="topic-metadata">

**Author:** [@ironmansculler](https://clarionhub.com/u/ironmansculler)\
**Replies:** 22\
**Last updated:** [November 13, 2026, 11:38am UTC](https://clarionhub.com/t/win-32-api-and-clarion-versions-10-11-12-and-above/8613 "2026-11-13T11:38:59Z")

</div>

We are starting to replace good old clarion standard procedures with our linux ported binding emulation machine to windows 32.. with the goal of adding the binding machine to clarion template ABC apps with AI generated f…

---

## [Interapplication messages](https://clarionhub.com/t/interapplication-messages/2977)

<div class="topic-metadata">

**Author:** [@JaredDavis](https://clarionhub.com/u/JaredDavis)\
**Replies:** 11\
**Last updated:** [November 6, 2026, 3:34am UTC](https://clarionhub.com/t/interapplication-messages/2977 "2026-11-06T03:34:34Z")

</div>

Hi, I would like to have one clarion program send messages to another (clarion?) program for processing with the results sent back. The processor would be single threaded. I tried searching for "message queues" and so…

---

## [Drag and Drop - ds\_GetClipboardEx - RDP session](https://clarionhub.com/t/drag-and-drop-ds-getclipboardex-rdp-session/9434)

<div class="topic-metadata">

**Author:** [@jobcard](https://clarionhub.com/u/jobcard)\
**Replies:** 4\
**Last updated:** [October 21, 2026, 10:29pm UTC](https://clarionhub.com/t/drag-and-drop-ds-getclipboardex-rdp-session/9434 "2026-10-21T22:29:47Z")

</div>

Hi all Has anyone used Capesoft's Winevent ds\_GetClipboardEx to perform drag and drop from the desktop to an RDP session? If so, any tips? Thanks Rohan

---

## [How to Get the Downloads Folder Path C11](https://clarionhub.com/t/how-to-get-the-downloads-folder-path-c11/9382)

<div class="topic-metadata">

**Author:** [@Dirk1](https://clarionhub.com/u/Dirk1)\
**Replies:** 14\
**Last updated:** [September 25, 2026, 3:30pm UTC](https://clarionhub.com/t/how-to-get-the-downloads-folder-path-c11/9382 "2026-09-25T15:30:32Z")

</div>

Hi All, Does anybody knows how to Get the Downloads Folder Path in c11 and windows 11 64 bit

---

## [FILEDIALOG(...FILE:Directory) to select folder may crash with OneDrive; use IFILEDIALOG instead](https://clarionhub.com/t/filedialog-file-directory-to-select-folder-may-crash-with-onedrive-use-ifiledialog-instead/9217)

<div class="topic-metadata">

**Author:** [@RichCPT](https://clarionhub.com/u/RichCPT)\
**Replies:** 9\
**Last updated:** [September 16, 2026, 6:20pm UTC](https://clarionhub.com/t/filedialog-file-directory-to-select-folder-may-crash-with-onedrive-use-ifiledialog-instead/9217 "2026-09-16T18:20:03Z")

</div>

When Clarion’s runtime FILEDIALOG procedure is used as a folder picker (using the FILE:Directory option), users can easily crash the application when browsing OneDrive-backed folders, and possibly other virtual folders. …

---

## [Events from C++ to Clarion - EVENT()](https://clarionhub.com/t/events-from-c-to-clarion-event/9318)

<div class="topic-metadata">

**Author:** [@blue](https://clarionhub.com/u/blue)\
**Replies:** 3\
**Last updated:** [August 25, 2026, 2:15pm UTC](https://clarionhub.com/t/events-from-c-to-clarion-event/9318 "2026-08-25T14:15:02Z")

</div>

Hello, Has anybody sent window event from C++ to Clarion window? PostMessage() does not return error, but Clarion window does not register event. Code PostMessage((HWND)win\_hndl, WM\_USER, 0, 0); is not registered in Cl…

---

## [Issue is with window focus/order:](https://clarionhub.com/t/issue-is-with-window-focus-order/9089)

<div class="topic-metadata">

**Author:** [@Edvard\_Korsbaek](https://clarionhub.com/u/Edvard_Korsbaek)\
**Replies:** 2\
**Last updated:** [May 4, 2026, 8:40am UTC](https://clarionhub.com/t/issue-is-with-window-focus-order/9089 "2026-05-04T08:40:51Z")

</div>

I have Program1 that launches Program2 using: RUN('tjele.exe /' & CLIP(lok\_handleplan\_id)) This works fine. The issue is with window focus/order: Program2 opens its own window If I switch back to Program1 to look so…

---

## [How can I identify drive letters available to a computer?](https://clarionhub.com/t/how-can-i-identify-drive-letters-available-to-a-computer/9079)

<div class="topic-metadata">

**Author:** [@kenns](https://clarionhub.com/u/kenns)\
**Replies:** 2\
**Last updated:** [April 28, 2026, 6:50am UTC](https://clarionhub.com/t/how-can-i-identify-drive-letters-available-to-a-computer/9079 "2026-04-28T06:50:48Z")

</div>

I am trying to establish data paths for an application that could have data on a local drive or on a network share. My process is to select a drive letter, and then nominate a folder name. It then creates an INI file wit…

---

## [Files associated to which program?](https://clarionhub.com/t/files-associated-to-which-program/9025)

<div class="topic-metadata">

**Author:** [@Jorge\_Alejandro\_Lave](https://clarionhub.com/u/Jorge_Alejandro_Lave)\
**Replies:** 5\
**Last updated:** [April 3, 2026, 7:46pm UTC](https://clarionhub.com/t/files-associated-to-which-program/9025 "2026-04-03T19:46:53Z")

</div>

Hi, all How do I know from inside a regular non-elevated exe clarion program, to which program is associated a given file extension? For example, I want to use Shellexecute to open a JPG, but before that I want to know …

---

## [Looking for Clarion Programmer for maintenance on medical laboratory app](https://clarionhub.com/t/looking-for-clarion-programmer-for-maintenance-on-medical-laboratory-app/8965)

<div class="topic-metadata">

**Author:** [@gary](https://clarionhub.com/u/gary)\
**Replies:** 1\
**Last updated:** [February 25, 2026, 8:13pm UTC](https://clarionhub.com/t/looking-for-clarion-programmer-for-maintenance-on-medical-laboratory-app/8965 "2026-02-25T20:13:25Z")

</div>

Allermetrix is a reference laboratory specializing in blood testing for allergy. We are located in the Nashville TN area. Our laboratory information system (LIS) was custom programmed in Clarion. The programmer is no l…

---

## [AttachThreadToClarion() - Whats not included?](https://clarionhub.com/t/attachthreadtoclarion-whats-not-included/8785)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 6\
**Last updated:** [November 16, 2025, 8:04pm UTC](https://clarionhub.com/t/attachthreadtoclarion-whats-not-included/8785 "2025-11-16T20:04:38Z")

</div>

In the docs, it says This AttachThreadToClarion function must be called by the launching thread to attach it to the thread handler in the runtime library. Without this call, any attempt within the thread to use thread …

---

## [Clarion Service example - XP to Win 11 - All Service Features](https://clarionhub.com/t/clarion-service-example-xp-to-win-11-all-service-features/8760)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 0\
**Last updated:** [November 5, 2025, 9:30pm UTC](https://clarionhub.com/t/clarion-service-example-xp-to-win-11-all-service-features/8760 "2025-11-05T21:30:00Z")

</div>

Comments and criticism always welcome. :grin: Edit. Only thing I cant get to work which causes the app/service to hang on Win11 25H2 is SERVICE\_CONTROL\_USERMODEREBOOT. Cant find anything in the MS docs and the LLM'…

---

## [Best way to to make Module('C60RunX') version agnostic?](https://clarionhub.com/t/best-way-to-to-make-module-c60runx-version-agnostic/8759)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 2\
**Last updated:** [November 6, 2025, 3:40am UTC](https://clarionhub.com/t/best-way-to-to-make-module-c60runx-version-agnostic/8759 "2025-11-06T03:40:35Z")

</div>

Module('C60RunX') ! AttachThreadToClarion - Initialise the Clarion Runtime when the Windows Service Control Manager (SCM) steps into ServiceMain ISWA\_AttachThreadToClarion( Bool ), Pascal, Name('AttachThreadToClar…

---

## [Whats the best way to handle the StartServiceCtrlDispatcherA call to ServiceMain](https://clarionhub.com/t/whats-the-best-way-to-handle-the-startservicectrldispatchera-call-to-servicemain/8747)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 3\
**Last updated:** [November 4, 2025, 9:33am UTC](https://clarionhub.com/t/whats-the-best-way-to-handle-the-startservicectrldispatchera-call-to-servicemain/8747 "2025-11-04T09:33:26Z")

</div>

Trying to get a clarion app loaded as a Service. Calling StartServiceCtrlDispatcherA which is calling a source procedure, but its failing with an error 1067 "The process terminated unexpectedly." So have a handlerExA a…

---

## [How reliable is the BeingDebugged byte in the NtQueryInformationProcess PEB data structure?](https://clarionhub.com/t/how-reliable-is-the-beingdebugged-byte-in-the-ntqueryinformationprocess-peb-data-structure/8731)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 0\
**Last updated:** [October 27, 2025, 4:59pm UTC](https://clarionhub.com/t/how-reliable-is-the-beingdebugged-byte-in-the-ntqueryinformationprocess-peb-data-structure/8731 "2025-10-27T16:59:21Z")

</div>

Have a need to pull the data out of the PEB structure. I'm assuming the BeingDebugged byte is set using one of the Debug api's? Thing is, if I set the project to Release and then attach the Debugger to the process u…

---

## [Play an MP3 music file](https://clarionhub.com/t/play-an-mp3-music-file/8649)

<div class="topic-metadata">

**Author:** [@Wayne](https://clarionhub.com/u/Wayne)\
**Replies:** 8\
**Last updated:** [October 16, 2025, 4:14pm UTC](https://clarionhub.com/t/play-an-mp3-music-file/8649 "2025-10-16T16:14:33Z")

</div>

does anyone know the exact syntax needed to play an MP3 music file? What global items are needed, if any, and what is the exact syntax?

---

## [Passing Parameters to a Windows Service?](https://clarionhub.com/t/passing-parameters-to-a-windows-service/8670)

<div class="topic-metadata">

**Author:** [@Julian](https://clarionhub.com/u/Julian)\
**Replies:** 1\
**Last updated:** [October 6, 2025, 12:16pm UTC](https://clarionhub.com/t/passing-parameters-to-a-windows-service/8670 "2025-10-06T12:16:03Z")

</div>

I have a hand-coded service running without parameters but would now like to pass a parameter to influence its action. Docs say the main procedure is prototyped thus : Main(LONG dwArgs,LONG lpszArgs) but where do the p…

---

## [WM\_ENDSESSION - Where is the runtime picking this up?](https://clarionhub.com/t/wm-endsession-where-is-the-runtime-picking-this-up/8605)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 9\
**Last updated:** [September 17, 2025, 6:07pm UTC](https://clarionhub.com/t/wm-endsession-where-is-the-runtime-picking-this-up/8605 "2025-09-17T18:07:57Z")

</div>

I've got a subclassed procedure trapping for EndSession and QueryEndSession, but somehow the Runtime is picking this up so I'm getting the message: Application Still Active Quit the Application before quitting windows. …

---

## [Time & Date Conversion to Unix Epoch](https://clarionhub.com/t/time-date-conversion-to-unix-epoch/8611)

<div class="topic-metadata">

**Author:** [@PaulAttryde](https://clarionhub.com/u/PaulAttryde)\
**Replies:** 6\
**Last updated:** [September 16, 2025, 6:01am UTC](https://clarionhub.com/t/time-date-conversion-to-unix-epoch/8611 "2025-09-16T06:01:28Z")

</div>

I'm having a senior moment :slight\_smile: I have a Win32 SystemTime structure with all the individual components of a time stamp (IE, "2010-01-26 @ 07:53:41.0898") , what's the easiest way to convert it into the # of se…

---

## [How can one show the Help Button in the Caption Bar?](https://clarionhub.com/t/how-can-one-show-the-help-button-in-the-caption-bar/8592)

<div class="topic-metadata">

**Author:** [@ThaDaSoft](https://clarionhub.com/u/ThaDaSoft)\
**Replies:** 5\
**Last updated:** [September 12, 2025, 4:55pm UTC](https://clarionhub.com/t/how-can-one-show-the-help-button-in-the-caption-bar/8592 "2025-09-12T16:55:12Z")

</div>

I know in WinForms one can show a Help icon in the caption - how can one do this inside Clarion? See: Form.HelpButton Property (System.Windows.Forms) | Microsoft Learn Extra: https://stackoverflow.com/questions/3744894…

---

## [Swapping over duplicate subclass procedures - perils?](https://clarionhub.com/t/swapping-over-duplicate-subclass-procedures-perils/8561)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 10\
**Last updated:** [September 6, 2025, 6:17pm UTC](https://clarionhub.com/t/swapping-over-duplicate-subclass-procedures-perils/8561 "2025-09-06T18:17:32Z")

</div>

Got some subclass procedures which log information to global Q's. Every so often I need to process these global Q's and save them to disk whilst still not missing any of the msg that the subclass procedures trap. So on…

---

## [How to subclass a window and shorten the title when using MDITabs](https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565)

<div class="topic-metadata">

**Author:** [@LANSRAD](https://clarionhub.com/u/LANSRAD)\
**Replies:** 1\
**Last updated:** [September 5, 2025, 3:00pm UTC](https://clarionhub.com/t/how-to-subclass-a-window-and-shorten-the-title-when-using-mditabs/8565 "2025-09-05T15:00:46Z")

</div>

I created this demo in response to a post in the Clarion newsgroups asking about how to shorten the window titles when using the MDI tab feature of Clarion on an appframe. Here is a demo app in C11 that shows how to …

---

## [PROP:WndProc on multiple windows](https://clarionhub.com/t/prop-wndproc-on-multiple-windows/8557)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 1\
**Last updated:** [September 3, 2025, 8:05am UTC](https://clarionhub.com/t/prop-wndproc-on-multiple-windows/8557 "2025-09-03T08:05:25Z")

</div>

Using PROP:WndProc on a main frame, subclassing procs are working fine, moved one of the subclass procedures to a SDI window and its crashes on the Return CallWindowProc in the subclass proc. Here CallWindowProcA functi…

---

## [Why are there incompatible Window Style's set?](https://clarionhub.com/t/why-are-there-incompatible-window-styles-set/8548)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 3\
**Last updated:** [August 31, 2025, 8:00pm UTC](https://clarionhub.com/t/why-are-there-incompatible-window-styles-set/8548 "2025-08-31T20:00:27Z")

</div>

Does anyone know why there are incompatible Window Styles set in a default clarion window? So Clarion Properties set are Window WINDOW('Window Title'),AT(,,260,180),CENTER,SYSTEM,GRAY,DOUBLE Below is what windows is r…

---

## [Hide App button from TaskBar when it goes to Systray icon](https://clarionhub.com/t/hide-app-button-from-taskbar-when-it-goes-to-systray-icon/8517)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 6\
**Last updated:** [August 28, 2025, 8:37pm UTC](https://clarionhub.com/t/hide-app-button-from-taskbar-when-it-goes-to-systray-icon/8517 "2025-08-28T20:37:43Z")

</div>

I'm trying to hide an App Button from the taskbar when I create a systray icon for it, but it keeps reappearing. Having to roll my own code to replace the FrameExtension template/class. Anyone know why? SysTrayAddTrayI…

---

## [Clarion ClassNames eg ClaWin0400000H\_1 and ClaWin0400000H\_2](https://clarionhub.com/t/clarion-classnames-eg-clawin0400000h-1-and-clawin0400000h-2/8547)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 2\
**Last updated:** [August 28, 2025, 8:36pm UTC](https://clarionhub.com/t/clarion-classnames-eg-clawin0400000h-1-and-clawin0400000h-2/8547 "2025-08-28T20:36:31Z")

</div>

It appears that the number appended to the Classname eg ClaWin0400000H\_1, ClaWin0400000H\_2, ClaWin0400000H\_3 and ClaWin0400000H\_4 is the window open count. Does anyone know if the Classname is the same throughout and is…

---

## [Win32 Post(Thread)MessageA and Clarion Post(post user-defined event) - Is there a SendMessageA Clarion equivalent?](https://clarionhub.com/t/win32-post-thread-messagea-and-clarion-post-post-user-defined-event-is-there-a-sendmessagea-clarion-equivalent/8524)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 3\
**Last updated:** [August 25, 2025, 8:12am UTC](https://clarionhub.com/t/win32-post-thread-messagea-and-clarion-post-post-user-defined-event-is-there-a-sendmessagea-clarion-equivalent/8524 "2025-08-25T08:12:56Z")

</div>

Am I correct to believe that the Clarion Post(post user-defined event) is identical to the win32 PostMessageA and PostThreadMessageA api's? If it is/are, is there a win32 SendMessageA api equivalent in Clarion besid…

---

## [How to Dynamically Load DLL's and Call Procedures by Address](https://clarionhub.com/t/how-to-dynamically-load-dlls-and-call-procedures-by-address/5444)

<div class="topic-metadata">

**Author:** [@anon23294430](https://clarionhub.com/u/anon23294430)\
**Replies:** 31\
**Last updated:** [August 23, 2025, 9:09am UTC](https://clarionhub.com/t/how-to-dynamically-load-dlls-and-call-procedures-by-address/5444 "2025-08-23T09:09:08Z")

</div>

Edit Changed title from GetProcAddress & Alexey’s Assembler code to pass additional parameters, & Larry Sand’s Cmag and Paul Attryde’s post on calling a DLL at runtime, ie not statically linked To How to dynamically l…

---

## [Win11 - LoadLibraryExA - Load\_Library\_Require\_Signed\_Target - Error 127](https://clarionhub.com/t/win11-loadlibraryexa-load-library-require-signed-target-error-127/8506)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 5\
**Last updated:** [August 20, 2025, 7:50pm UTC](https://clarionhub.com/t/win11-loadlibraryexa-load-library-require-signed-target-error-127/8506 "2025-08-20T19:50:33Z")

</div>

Trying to load some windows Api's using LoadLibraryExA with the Load\_Library\_Require\_Signed\_Target and I'm getting Error 127 ERROR\_PROC\_NOT\_FOUND The specified procedure could not be found. If I dont use the Load\_Librar…

---

## [Strpos returning result beyond size of cstring in VDMEnumTaskWowEx](https://clarionhub.com/t/strpos-returning-result-beyond-size-of-cstring-in-vdmenumtaskwowex/7755)

<div class="topic-metadata">

**Author:** [@RchdR](https://clarionhub.com/u/RchdR)\
**Replies:** 34\
**Last updated:** [August 17, 2025, 2:21pm UTC](https://clarionhub.com/t/strpos-returning-result-beyond-size-of-cstring-in-vdmenumtaskwowex/7755 "2025-08-17T14:21:29Z")

</div>

Using Strpos to exclude winold.mod and wowexec.exe for the filename returned when calling VDNEnumTaskWowEx, a 16bit api. I found a situation using strpos where it will return a result greater than the filename. Any ide…

[Next page](https://clarionhub.com/tag/winapi/125.md?match_all_tags=true&page=1&tags%5B%5D=winapi)
