1,999 questions with Windows API - Win32 tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,099 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,904 questions
asked 2024-10-03T02:46:06.51+00:00
CHAN Samuel 20 Reputation points
accepted 2024-10-03T08:32:03.5133333+00:00
CHAN Samuel 20 Reputation points
4 answers One of the answers was accepted by the question author.

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-10-02T04:43:50.6+00:00
VooDooChicken 40 Reputation points
edited an answer 2024-10-03T03:52:09.5033333+00:00
Tong Xu - MSFT 2,456 Reputation points Microsoft Vendor
1 answer

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

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
asked 2024-10-01T02:15:50.39+00:00
Derek Todd 0 Reputation points
answered 2024-10-01T09:14:14.06+00:00
Tong Xu - MSFT 2,456 Reputation points Microsoft Vendor
1 answer

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,…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-09-20T00:35:34.35+00:00
rizhang 1 Reputation point
commented 2024-10-01T03:30:45.19+00:00
Junjie Zhu - MSFT 17,806 Reputation points Microsoft Vendor
1 answer

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);

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,587 questions
asked 2024-09-29T08:12:47.26+00:00
Yniar GL 0 Reputation points
commented 2024-09-30T02:52:04.0066667+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,722 questions
asked 2024-09-29T06:03:39.5933333+00:00
Mansour_Dalir 1,876 Reputation points
commented 2024-09-29T12:53:17.42+00:00
Castorix31 85,116 Reputation points
1 answer One of the answers was accepted by the question author.

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?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-09-29T03:02:16.0933333+00:00
qicheng 20 Reputation points
accepted 2024-09-29T06:17:01.28+00:00
qicheng 20 Reputation points
2 answers

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…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
asked 2024-08-02T17:24:18.4833333+00:00
Robinson 146 Reputation points
commented 2024-09-28T16:11:05.3366667+00:00
Robinson 146 Reputation points
1 answer

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,889 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,587 questions
asked 2024-09-24T09:32:40.85+00:00
윤기 오 0 Reputation points
commented 2024-09-27T06:43:23.3566667+00:00
Jiale Xue - MSFT 44,926 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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, …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,566 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-09-19T08:58:29.7833333+00:00
Lloyd Etheridge 20 Reputation points
commented 2024-09-25T13:10:55.52+00:00
Lloyd Etheridge 20 Reputation points
1 answer

the sink writer always stopped or error after 1-3 times success?

i am using sink writer to write sample. here is the code: while(true){ hr = dxgiOutputDuplication->AcquireNextFrame(0, &frame_info, &resource); if (SUCCEEDED(hr)) { ID3D11Texture2D* texture = NULL; hr =…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
asked 2024-09-19T16:02:26.66+00:00
mc 4,476 Reputation points
commented 2024-09-25T06:51:54.9066667+00:00
Junjie Zhu - MSFT 17,806 Reputation points Microsoft Vendor
1 answer

Is it possible to Intercept and postprocess all audio streams coming from any app or process running on Windows device?

We want to build some app ( C++/Python) for intercepting and processing all audio streams coming from any applications/process like Youtube in browser, inbuilt music app on Windows Device .   The program should apply some filters to audio first and…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-09-16T18:02:17.9033333+00:00
Sumit Kumar 0 Reputation points Microsoft Employee
commented 2024-09-25T06:25:59.7866667+00:00
Tong Xu - MSFT 2,456 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

How can i hide the window icon and minimize and maximize button from titlebar using windows api in java swing using, com.sun.jna.platform ?

So basically im new to the windows api and Im trying to hide both maximize, minimize buttons as well as the titlebar icon using the windows api and the java native access library. Here is what i tried so far private void disableTitleBarIcon() { …

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,378 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
asked 2024-09-12T20:45:37.04+00:00
AndronikosG 40 Reputation points
edited the question 2024-09-25T03:18:00.9533333+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
1 answer

Recent documentation on securely storing password in Windows registry?

I am trying to find recent, trustworthy, step-by-step documentation on how to securely store passwords (for example, an Oracle database password) in a Windows registry. I am using Windows 11. My end goal is to write a Python script that queries an Oracle…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,587 questions
asked 2024-09-24T15:09:42.6033333+00:00
glassesdumpbreathe 0 Reputation points
answered 2024-09-24T17:08:51.4366667+00:00
Castorix31 85,116 Reputation points
1 answer One of the answers was accepted by the question author.

how to create shadow effect using direct2d?

how to create shadow effect using direct2d to line or rectangle? I know I can create shadow on ID2D1Image.but Can I create it on line or rectangle? when I fill rectangle can I create its shaodow? or when I Draw Rectangle can I draw it's shadow?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
asked 2024-09-21T00:08:04.9933333+00:00
mc 4,476 Reputation points
accepted 2024-09-21T10:52:10.8966667+00:00
mc 4,476 Reputation points
2 answers

Win32_TSLicenseReport not generating report when AD has Japanese usernames

$fileName = (Invoke-WmiMethod Win32_TSLicenseReport -Name GenerateReportEx).FileName $fileEntries = (Get-WmiObject Win32_TSLicenseReport | Where-Object FileName -eq $fileName).FetchReportEntries(0, 0).ReportEntries These commands succeed when I have…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,502 questions
asked 2024-09-18T18:52:50.6866667+00:00
Nithin Thankachan 0 Reputation points
answered 2024-09-21T02:14:44.2533333+00:00
Rich Matheisen 46,636 Reputation points
2 answers One of the answers was accepted by the question author.

How Can I fix lParam pointer Error in Pinvoke/Win32 ?

Hi there, currently I need to dig up some Win32 code which is a part of my project, Actually, it's a part of my WPF application where access Win32 APIs using the traditional Pinvoke method. But Currently I facing some error at lParam pointer…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,904 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,719 questions
asked 2024-09-18T11:32:18.04+00:00
MERUN KUMAR MAITY 596 Reputation points
accepted 2024-09-20T11:41:04.6933333+00:00
MERUN KUMAR MAITY 596 Reputation points
1 answer

How to format USB & CD-Rome

Hi, I'm using net 8, I would like to format. 1.USB include bit locker. 2.CD-Rome Can you supply full coe how to do it? Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,834 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-07-30T11:01:04.0133333+00:00
Dani_S 3,786 Reputation points
commented 2024-09-19T10:45:58.54+00:00
Dani_S 3,786 Reputation points
4 answers

Self-closing MessageBox

What would the code look like that displays a message that will close in 5 seconds? I'm interested in Win32 functions, not the capabilities of programming languages ​​(C#, C++, etc.).

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-09-09T13:05:47.51+00:00
Participant 41 Reputation points
commented 2024-09-19T06:01:25.62+00:00
Jeanine Zhang-MSFT 9,666 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to fix the Win32 API function error: 1312 (GetTokenInformation) occurring for the below code used for creating a windows application.

I have used the below code and it is working fine for most of the cases but for one windows machine it is failing at the section where we call 'GetTokenInformation' win32 API function and throws an error as ERROR: API = GetTokenInformation, error code =…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,609 questions
asked 2024-09-10T04:38:49.8933333+00:00
Prem Jha 45 Reputation points
accepted 2024-09-18T11:33:52.0333333+00:00
Prem Jha 45 Reputation points