Questions tagged [winapi]

22 questions
7
votes
3 answers

query session command gives error code 5 even when AllowRemoteRPC is set to 1

in cmd, 'Query Session' command is returning, Error 5 getting sessionnames Error [5]:Access is denied on Windows 10 Remote desktop - Administrator user. we have set, AllowRemoteRPC 's value to 1 under this…
Amit
  • 163
5
votes
2 answers

show more than 8 items in the Data Validation drop down list in Excel

I have added a simple data validation to a cell but it only displays 8 items in the dropdown. Excluding the combobox solution and probably involving some WinAPI is there a way to make the drop down list longer/bigger?
user222864
4
votes
0 answers

Why does Windows allow you to read and write another process memory?

I found that many debuggers (like x64dbg) or hex viewers (HxD) allow you to access and modify memory of another process. It works without any asking for permission. I even wrote a simple program that replaces a string in memory of other processes…
Ahoj Lidi
  • 41
  • 1
  • 2
2
votes
2 answers

Not disable, but make the windows button on sculpt ergonomic mouse send XBUTTON2 message (winapi prespective)

As expected, the two extra buttons on all mice send XBUTTON1 and XBUTTON2 messages. However with a Sculpt ergonomic mouse, the Windows button does not send this. Apparently it sends the right Windows key. I need to fix it so that it sends…
Noitidart
  • 234
2
votes
2 answers

Virtual/mock external monitor drivers for Windows to test multiple displays?

I am authoring a software that should work properly when a Windows environment has multiple displays attached to it. Sadly, I only have a single monitor attached to my PC so I cannot easily test the software I am authoring. Are there recommendations…
1
vote
1 answer

Way to switch keyboard layout with a hotkey without crashing Skype on Windows 10

Prior to Windows 10 I was using something similar to Autohotkey scripts mentioned in this question. After upgrading to Windows 10, PostMessage to a Skype chat window causes Skype to freeze. Is here another way to switch keyboard layouts? I have 3…
x3al
  • 156
1
vote
1 answer

How to run Windows compiled for PowerPC on Modern PowerPC machines without instruction set enumeration?

Windows® NT supported more architectures in the past, but similar to Apple with their Mac, Windows® for PowerPC required an ARC BIOS in order to be booted (please note this doesn’t only concern this architecture). Virtualization answers like this…
user2284570
  • 2,020
1
vote
2 answers

SVG exported to EMF loses precision, but exported as PNG looks fine

I am Windows desktop programmer that needs to convert certain SVG into EMF in order to use it for programming. My graphics design skills are at beginner level, but I have managed to convert SVG file into EMF successfully using Inkscape. However, the…
1
vote
0 answers

How to increase Mouse Keys max speed in Windows?

I need to use the Mouse Keys feature of Windows 10 for accessibility reasons. It's a useful tool that can control the mouse using NumPad keys. But it has very limited configurability. It only has two sliders for "Pointer Speed" (ranging from 10 to…
wololoo
  • 25
1
vote
2 answers

How can I open the file properties dialog on Windows via CLI?

Does Windows offer a way to open the file/directory properties dialog through command line? I found various rundll32.dll commands, but none of them offer this functionality. What would be the
1
vote
2 answers

How does windows listen for system hotkeys?

For a project I am working on. I was wondering, how does Windows 10 listen for system hotkeys? Is there some system service in the background doing it? By system hotkeys I mean Alt+F4 and similar.
medic17
  • 286
0
votes
0 answers

What happens when I terminate a process and the socket send buffer is not empty?

In Windows (and probably in other operating systems), if a process has a TCP connection with another process on another machine, and then I terminate the process, an RST packet will be sent to the other machine to indicate the end of the…
user4579580
0
votes
1 answer

multiple System Sounds are seen on win 7

Sometimes, on my win 7 OS, I see multiple System Sounds icons in volume mixer. Some of my applications are using SimpleAudioVolume APIs to mute the system sounds. Can anyone tell me why I see multiple "system sounds" icons in Volume Mixer? Thanks in…
user3994210
0
votes
0 answers

Windows - How to load / start multiple sessions at startup (without logging in)?

At my home I have a computer running on Windows 11 Pro. I configured it so everyone in my family can use it (at the same time) on the local machine but also via Raspberry Pi RDP clients (using Remmina) for each user with their own sessions. It's…
0
votes
0 answers

Irritating WiFi instability

I have problems with WiFi on an Acer Aspire A515-43 with Windows 11. Now and then, the WiFi connection starts behaving strange. It goes down and recovers shortly after some to some tens of seconds just to go down again. The disturbance continues for…
Kalle Svensson
  • 233
  • 1
  • 2
  • 9
1
2