Programatically turn on/off Japanese IME Kana/Romaji input mode
I am trying to programmatically turn on/off Japanese Kana/Romaji input mode. This is equivalent to the "Kana input" option in the IME input menu I have tried to use InputMethod.SetPreferredImeConversionMode but it can only sets the TextBox…
How to programmatically turn on/off Japanese IME Kana/Romaji input mode?
We are developing a WPF application with Japanese text input supports. We are able to set the textbox to accept Japanese Hiragana input by calling…
c++ basic GDI bitmap not working
hi, I want to draw a bitmap, as simple as that. From the beginning, the first step was to create a basic desktop app Since the app Visual Studio creates does not include a Window class definition, I declared the bitmap as a global variable // Global…
What are the known folder paths returned by SHGetKnownFolderPath on Windows 11 using OneDrive's Known Folder Move Feature?
OneDrive now includes a feature called Known Folder Move. It is my understanding that for consumers (not managed devices) when OneDrive is used on a Windows 11 system it will implement this feature and several of the known folders will now default to…
How to view all Visual Tree UI elements of any UI controls, Which is using styles & templates on windows 11 OS environment using VisualUIAVerifyNative tool?
VisualUIAVerifyNative is not displaying few UI elements If TextBox uses style, which has TextBlock as PlaceholderText, then the placeholder textblock UI element is not getting displayed in VisualUIAVerifyNative on windows 11 machine <Style…
Issue with SetNamedSecurityInfo Returning Error Code 59 on Shared File
Hello, I am encountering an issue with the **SetNamedSecurityInfo **API while attempting to modify the security settings of shared files. I have five shared files, and the API works as expected on four of them. However, for one specific shared file, the…
Why doesn't GetNameInfo win32 api resolve Chinese computer names on Windows 11?
0 I have a small lab based Active Directory environment with 3 devices. They have the following OS installed. DC running Windows Server 2022 hosting my AD server. 1.Endpoint running Windows 10 Pro (22H2 Build 19045.4780) [English US installation and…
LogonUser Win32 API Function gives error of incorrect username or password passed for the correct credentials passed!
I created a Windows SSHD MSI Installer using CPP and Win32 API Function to create a SSH login to the remote user on the Windows Server on which we install our MSI Installer. The Portuguese Language based Windows Server 2016 when logged in with a default…
How to make XAudio2 throw a Device Lost flag/error?
Hi, I was wondering how I can produce a Device Lost message for XAudio2. I tried using the dxcaps -forcetdr command in the Developer Command Prompt window for Visual Studio, but it did not work. I am using C++ and programming for Windows 10. Derek
AudioSessionControl::SetIconPath no longer works volume mixers besides SndVol
We have multiple HWNDs and volume controls in the same process so we want to set the icon for each volume control differently. AudioSessionControl::SetDisplayName works fine across all Windows volume mixers (ie. SndVol, "Windows + G" dashboard,…
How to limit the Bcrypt library generated random numbers range?
Hello! I'm using the Bcrypt library BCryptGenRandom function to generate random numbers. The BCryptGenRandom function generates UCHARs with range 0-255. I need a range of 1-50. I know I can use the formula: rand_num % (MAX_NUM + 1 - MIN_NUM) + MIN_NUM.…
why it is faster or slower than it should be when I use sink writer to write sample?
When I use sink writer to write sample I find that it is faster or slower thank it shoude be. it is the example:https://github.com/ljzj2/testdemo1
Why does IAudioClient::GetMixFormat return 8 channels audio even if the system's sound card only has two channels?
为甚么 IAudioClient::GetMixFormat return 8 channels audio ,扬声器实际上仅支持 2 声道 captureClient->GetMixFormat(&m_wfex);
How to get the tooltip value when hovering the mouse anywhere on the desktop
I'm working on a VB project and I need to capture the tooltip value when hovering over the desktop. Can someone help me figure out how to do this? Is this reversible?
Is there any way to temporarily hang or disable zero-page thread in windows,i only want to test?
Hi~ Recently I want to emporarily hang or disable zero-page thread to test something, Is there any better way?
Win32 TreeView drag item flickering
I have a basic Win32 tree control I've implemented drag/drop with. The TreeView has been set to double buffer to avoid any flicker. The drag item is drawn no problem as I drag around. However in order to get correct drawing of the underlying view as…
High DPI with embedded WinForm UserControl in a Win32 application.
Apologies in advance as this question is a long shot and somewhat obscure. I have a C++ application I maintain. It embeds two .NET 4.x WinForms User Controls as panels in its Win32 window with: My_Control.CreateInstance(L"My…
Logging in to different domain using LogonUser API
Calling LogonUser before a Winforms application starts running. So if the credentials are correct the application starts and if they are wrong the application wont start. So this working fine with the user credentials for the domain my system belongs to.…
When calling FlashWindowEx, Window behaves abnormally in Windows 11.
We would like to inquire about an abnormal behavior observed during the development of a Windows-based application. This was working normally in Windows 10, but in Windows 11, abnormal behavior has been confirmed when calling the Window API as shown…
would you know why URLDownloadToFile fails on windows 10
I have compiled code using watcom c++ compilier under win32 using the function URLDownloadToFile and while this was working on other machines its not working on a brand new install. #include <urlmon.h> HANDLE hr = URLDownloadToFile(NULL, …