![]() // Returns the part of the line, containing a Windows-message name. The F# code here can be treated as a single-file F# console-application in MS-Visual Studio: Herewith I upload both F#-code and the produced list used in a C-Function that returns the WM_XXXX-Names of message-codes, to be used by the other programmers in order to save their time. ![]() The following F# code produces my needed list of Windows-messages and their corresponding codes. Hence I needed the corresponding name strings, WM_XXXX, assigned to each Windows-message-code sent by Windows to Window Procedure, and instead of searching the Internet to find the ready to use material, as we usually do, this time I decided to put my recently being developed experiences in F# language into practice. So I tried to store the list of selected messages in a file. I was trapped in a programming hardship and in order to get rid of it, I decided to check, if a particular Windows-message is really sent to the window-procedure or not - It was a Win32-Application containing native code written in C using MS-Visual Studio, who had to receive some user defined messages from a DLL containing a hook-procedure. One can use such a list for example, to translate message-codes passed by Windows to a Window-Procedure function to the correspondig WM_XXXX string. The produced list of message-codes is also attached. ![]() This small piece of F#-code extracts the "WM_XXXX-Names of Windows-messages" and their system-defined numeric codes from the Windows header file, WinUser.H, and stores them in a text file.
0 Comments
Leave a Reply. |