Questions tagged [winapi]
20 questions
7
votes
2 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
- 153
- 1
- 1
- 10
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
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
- 1
- 4
- 16
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…
ahmet alp balkan
- 253
- 2
- 4
- 13
2
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
- 21
- 1
- 2
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
- 5
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
- 1,799
- 7
- 35
- 62
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…
AlwaysLearningNewStuff
- 63
- 1
- 9
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
- 257
- 2
- 10
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
Altering Z Order of SAP GUI Windows with Script While Under Lock Screen in Windows 10
I'm having trouble trying to automate SAP GUI windows for parallel extraction of data via VBA in Access when that activity is under a lock screen.
Specifically there are times when a context menu opens on top of the wrong window and causes the VBA…
Ian J.
- 1
0
votes
1 answer
How to enable emoji support in Wine?
I've made a simple program that displays a UTF-16 character (a cat emoji) inside a MessageBox. While it's working on a Windows 10 VM it displays two blank boxes under Wine. How can I fix this?
Windows 10 on the left, Wine on the right
sajmon
- 1
0
votes
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
HelloWorld
- 121
- 3
0
votes
1 answer
Is really need to reset [mouse] hooks when resuming computer from sleep?
It seems that I have not yet encountered a problem that is solved in this way. However, in different places I notice similar "protection".
For example, I saw this in X-Mouse Button Control: https://i.stack.imgur.com/h5esO.png
For what reason are…
Alex A.
- 111
- 7