How to get the text from the label by the handle with specific coordinates on any part of the desktop screen
I want to extract the text inside the label by giving certain coordinates from the screen, if the type of the coordinates is from the label, then extract the part of the obtained part.
![](https://techprofile.blob.core.windows.net/images/hBj0LQgf0UCJ70ENoTldCA.png?8DB7E4)
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
How to get the exception context address from a crashed process using its handle
we are able to launch a dump collection tool for jni crashes using jvm option -XX:OnError. But like we get a jit address passed to the jit debugger in win32 app crashes we dont get it from jvm. Is there an api to get the crash exceptio n context…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
How to prevent audio to be sent to the default audio endpoint?
Hi, I've some audio that I would like to only be sent to a particular audio endpoint (in this case, a controller output). I basically use IMMDeviceEnumerator::EnumAudioEndpoints() to get the endpoint I want and send audio to the device buffer using…
![](https://techprofile.blob.core.windows.net/images/N330SdAG0kqrzdPjkrhKeA.png?8DAB57)
Junk characters issue when trying to read Thai resources (.rc) in Windows App
I am working on the development of a windows app where when the .rc file used in this project is localized in thai junk characters appear on the app UI. We are using ANSI based rc files in this project. I understand that for my app to work I need to…
EVENTLOGRECORD Y2038 issue
Dear Microsoft colleague, The question is about _EVENTLOGRECORD structure. typedef struct _EVENTLOGRECORD { DWORD Length; DWORD Reserved; DWORD RecordNumber; DWORD TimeGenerated; DWORD TimeWritten; DWORD EventID; WORD EventType; WORD NumStrings; …
There are two invisible windows under my process with titles "MSCTFIME UI" and "Default IME"
Hi, I am working on win32 app and WinUI3 app in CPP. I want to find out all the available windows of my application. I am using EnumWindows to enumerate over all the windows and then filter it using process-ID in EnumWindowsProc. But I found that there…
How to get the GetDpiForWindow function signature correctly using LoadLibraryA and GetProcAddress ?
I am trying to use Rust write a cross-platform screenshot program to make it work on Windows 7 and above (such as Windows 7 and 10). By consulting, the scaling ratio of each window in the system above Windows 10 is independent, which means that the use…
The QueryVirtualMemoryInformation function fails in 32-bit mode because the WIN32_MEMORY_REGION_INFORMATION structure is defined incorrectly.
For the record, I have Windows 11, "Version 10.0.22631 Build 22631". The WIN32_MEMORY_REGION_INFORMATION structure is defined in "memoryapi.h" as the following: typedef struct WIN32_MEMORY_REGION_INFORMATION { PVOID…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
How to detect scale factor in Windows 10 in C++
I am trying to detect the display scale factor in Windows 10 in C++. Below is the code I am using. //Code to detect scale void getDisplayScale(double &h_Scale, double &v_Scale) { //auto activeWindow = GetActiveWindow(); HWND…
Window appears with old-style UI and no text in titlebar.
I'm developing a middleware for D that is quite similar to SDL/SFML, here's an exempt from the window creation code: class OSWindow { [...] this(io_str_t title, io_str_t name, int x, int y, int w, int h, ulong flags, WindowBitmap icon = null, OSWindow…
![](https://techprofile.blob.core.windows.net/images/_5e-jRvlCkWlkMrV8cdbJg.png?8D8365)
How to detect Windows dark mode
In the Windows settings, dark mode is enabled for Windows and light mode is enabled for applications. The following keys are missing from the registry: HKCU\Microsoft\Windows\CurrentVersion\Themes\Personalize. …
Windows API's CreateFile with CFile gives invalid path error if used drives created with SUBST
A drive is created for a folder using SUBST command. We have a Windows application which reads contents of the and performs some operations. Application does not give any error when read the file path is from actual drive. But when try to read from drive…
Looking for examples of using Rust language to make a Explorer Shell extension
I want to use Rust language for Windows Explorer shell extension development, but have no idea where to start. So, I'm looking for an FOSS Rust language based Windows Explorer shell extension to learn from Specifically, I want an FOSS project that uses…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
How do I display a transparent custom bitmap on a toolbar button in a Win32 C++ app?
I'm trying to add a button with a custom transparent bitmap to a toolbar in my Win32 C++ app. I'm using the following code to create and populate the toolbar. toolBar = CreateWindowEx(0, TOOLBARCLASSNAME, nullptr, WS_CHILD, 0, 0, 0, 0, hwnd,…
![](https://techprofile.blob.core.windows.net/images/uTGXggAAAwAAAAAAAAAAAA.png?8D9E5E)
Porting SetTransform function in DirectX 9 to DirectX 11 or 12
Iam porting an existing project with DirectX 9 to DirectX 11 or 12, I am trying to port the function SetTransform from DirectX 9, there is no reference found in DirectX 11 or 12, please kindly suggest where to find the above function and how to define…
Does PostQuitMessage(0) deallocates all the memory allocated for widgets in main thread?
Hi, I'm working on a CPP win32 application. We are developing a multi windowed application. When we want to force quit the application, we use PostQuitMessage(0) which stops the event loop and all the window visible will be closed. But by doing this will…
GDI+ PrivateFontCollection::AddMemoryFont failed to load fonts
GDI+ PrivateFontCollection::AddMemoryFont fails to load fonts and returns a status of InvalidParameter = 2. I made sure that my resources were correct as I also saved them locally, but the ttf fonts are correct. What is the problem please? My code and…
![](https://techprofile.blob.core.windows.net/images/1P-HevJX50CFOQJZsnsiMg.png?8D86C2)
What is the recommended approach for checking low battery events in Windows?
Hi, I am developing an application and need to register for a low-battery event in Windows. I have reviewed the PowerSettingGUIDs documentation and found a value named GUID_POWER_SAVING_STATUS. Reference:…
Apply changes made in registry regarding window metrics
I want to set specific values for: Computer\HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics Is there a way to apply registry changes without the need of logging off and on? Perhaps some service needs restarting? I've tried to restart explorer.exe…
How to get specific image coordinates from within bitmap
hi Is there a special (Library/Class) for such an achievement? which can find and return the coordinates by giving a symbol of a specific image from within the larger image
![](https://techprofile.blob.core.windows.net/images/hBj0LQgf0UCJ70ENoTldCA.png?8DB7E4)