Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
42 views

Long path aware manifest opt in on older versions of Windows

I have a c++ program for which i created manifest file and set long path aware to true. On newer versions of windows it works as expected. But what will happen if i launch my app on older versions of ...
Kliment Nechaev's user avatar
0 votes
1 answer
70 views

Window does not receive focus even when brought to the top

I’m working on a program that uses low-level keyboard hooks (LowLevelKeyboardProc) to detect key combinations and switch focus between windows of specific processes. The goal is for the program to ...
rick's user avatar
  • 721
-3 votes
1 answer
54 views

CreateSymbolicLink succeeds in Windows 10 Home but fails in Windows 10 Professional [closed]

CreateSymbolicLink succeeds in Windows 10 Home but fails in Windows 10 Professional. My acocunt is in the admins group with UAC enabled. Similarly, c:\dir> mklink a b in Home Edition it succeeds. ...
mugi's user avatar
  • 465
2 votes
0 answers
48 views

Detect if NVIDIA GPU is suspended

I have a laptop that has a dedicated NVIDIA GPU. However, this laptop has a problem where the NVIDIA GPU sometimes exits its suspended state and starts using battery, which causes a heavy battery ...
sky1099's user avatar
  • 23
0 votes
0 answers
93 views

Error while getting Disk's ATA Information in C#

I was making a C++ Console Application to get Disk's ATA Information but I was getting Error Code 1 in DeviceIoControl so I tried it in C#. ATAFeaturesForm.cs using System; using System.IO; using ...
karen's user avatar
  • 1
0 votes
1 answer
87 views

Windows API own integer types max and min values

Being forced to program using windows I have approached a problem. Despite intensive googling I have not found max and min definition for windows inter types like WORD, DWORD. Do they exist?
0___________'s user avatar
0 votes
0 answers
51 views

Unexpected rounded corners in Qt Frameless Widget

Unexpected rounded corners in Qt Frameless Widget I use Qt and Windows API to create a window with a custom title bar, and I want this window to have some of the effects of a Windows window (maximize, ...
chaomi1998's user avatar
0 votes
1 answer
103 views

Native file open dialog in Windows Ruby

As far as I understand, there are no gems which help to open native file dialogs, so I am interested in writing one, specifically for Windows I'm stuck at the first step which is getting the CLSID for ...
Zachary's user avatar
  • 65
-10 votes
0 answers
73 views

"undefined reference to `WinMain@16'" error in VS Code. Same program runs fine in online compilers [closed]

c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status This error happens every ...
Utkarsh Kumar's user avatar
2 votes
2 answers
110 views

I want to detect who causes a WM_COMMAND to be fired?

Background: I have an application with context menu, normal menu and accelerator. I have a paste command and in case the context menu was opened with the mouse, the paste operation should use the ...
xMRi's user avatar
  • 15.3k
0 votes
0 answers
58 views

How to Prevent Resizing Desktop Icon Window with Hotkey in Windows Application? [duplicate]

I've got a program that resizes the foreground window when a hotkey is entered: // Sample.cpp #ifndef UNICODE #define UNICODE #endif #include "Sample.h" int WINAPI wWinMain( _In_ ...
individual_9238's user avatar
0 votes
0 answers
98 views

Wake from "Modern Standby" not consistent (SetWaitableTimer)

I maintain a Windows service that runs in session 0. It performs maintenance tasks at certain times in a similar way to the Windows task scheduler. If the system is asleep, it uses SetWaitableTimer() ...
jimc's user avatar
  • 149
-1 votes
0 answers
60 views

Changing Taskbar (Shell_TrayWnd) Color to Transparent

I found a way to change color to fully transparent, by researching structure of DesktopWindowXamlSource of Taskbar (Shell_TrayWnd). DekstopWindowXamlSource structure: I'm curious is it possible to ...
Jacob Mordon's user avatar
0 votes
0 answers
83 views

Is it possible to turn the display off knowing the monitor handle [duplicate]

I can control the monitor brightness using DeviceIoControl and handle to the display device: handle = CreateFile(monitor, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); But I also ...
0___________'s user avatar
0 votes
1 answer
83 views

NetShareEnum giving no results

I've been working on a function to enumerate shares in Windows using Win32 C++ and hit a snag. net share shows all the shares with the default shares and that is good. But for some reason with the ...
seanlum's user avatar
  • 95

15 30 50 per page
1
2 3 4 5
742