43,727 questions
2
votes
1
answer
73
views
Setting FILE_ATTRIBUTE_PINNED / UNPINNED makes file Hidden and System [closed]
I am using Delphi Alexandria (Win64) and I need to programmatically Pin and Unpin OneDrive files.
I am attempting to use GetFileAttributes() and SetFileAttributes() with FILE_ATTRIBUTE_PINNED and ...
-3
votes
0
answers
58
views
Row hide/Show in CBCGPGrid [closed]
I am working with CBCGPGridCtrl(BCGControlBar Pro grid). I want to hide and show a row dynamically.
In previously the from in VsFlex now I covert to BCGPGrid
In VsFlex it's use Setrowhidden () for ...
-3
votes
1
answer
62
views
Why does Button.DoubleClick not fire in WinForms when MouseUp opens another form?
In a VB.NET Winforms application, we have a button.
On button click i.e. Button1.MouseUp event, it opens another form.
But when we double click on the button, the double click splits into two single ...
-3
votes
0
answers
118
views
NCryptSetProperty returns error 0x80090026 while deriving session keys using NCryptDeriveKey [closed]
I am trying to use NCryptDeriveKey() to derive session encryption and authentication keys using HKDF. I can generate ephemeral key-pair NCryptCreatePersistedKey() and return the key handle and public ...
0
votes
1
answer
107
views
Why is Ninja not compiling my RC file correctly?
I am using the MSys posix shell for convenience, and am using CMake with Ninja and MSVC. I have a minimum viable project like this:
CMakeLists.txt:
cmake_minimum_required (VERSION 3.16)
project(test ...
Advice
0
votes
13
replies
181
views
What does the 'L' in the beginning even mean?
I was following this guy's 'how to program a game from scratch in c++ tutorial', and was wondering why window_class.lpszClassName = "Game Window Class"; has a syntax error, but when I added ...
4
votes
1
answer
124
views
(windows assemby) GetCommandLineA returns string with extra space after the executable name
In cmd, I wrote the following command to test an executable named "msl.exe":
msl test c.exe
The executable calls GetCommandLineA (from the Windows API) and prints the command line. However, ...
0
votes
0
answers
85
views
How do I redirect calls to version.dll to my own proxy DLL in VS 2022?
I'm trying to create a DLL proxy based on many similar projects online. I am aware of the multitude of posts about DLL proxying on this site and others, but few are recent and I am unable to reproduce ...
0
votes
2
answers
134
views
Window is smaller than requested in CreateWindowExW()
I wanted to create a 300×100 window with CreateWindowExW:
HWND hwnd = CreateWindowExW(0,
WndClassName,
L"300 x 100 window",
...
1
vote
2
answers
244
views
How do executables being part of the same (server) application find eachother on MS Windows?
When there is an application, that consists of multiple executables, how do they locate each other on MS Windows? How does it work for installed programs, how does it work for "portable" ...
4
votes
1
answer
124
views
How do I correctly set the struct members of SECURITY_DESCRIPTOR?
I have attempted to write code that achieves what I'm asking in accordance to Microsoft's official documentation on this structure:
https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-...
Advice
0
votes
1
replies
32
views
Win32 kiosk app not working with virtual keyboard
I have a Win32 kiosk app that replaces the Windows shell (explorer.exe) with itself and acts as a login gatekeeper. It may let the user in after logging in (executes explorer.exe) or log the user out. ...
0
votes
0
answers
105
views
WinForms custom dialogs with overlay
I was wondering how to make a custom dialog with overlay system in Windows Forms.
I'm making that so I basically have 2 forms : The overlay which is maximized without FormBorderStyle = FormBorderStyle....
Advice
3
votes
2
replies
43
views
I'm having trouble with understanding memory space of GWLP_USERDATA
From SetWindowLongPtrW and GetWindowLongPtrW, it is said that GWLP_USERDATA is:
the user data associated with the window. This data is intended for use by the application that created the window. Its ...
0
votes
0
answers
57
views
Is there a way to reliably detect a removed directory via SMB on Windows?
Scenario:
1. My program runs on a remote snapshot directory on Windows mounted via SMB.
2. At some point, I get an error saying a path deep inside the snapshot doesn't exist.
3. I need to reliably ...