Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
101 views

I'm new to nasm assembly and I am trying to make a hello world program, but my code prints nothing. It seems that something in the gethandle label is broken, which leads to WriteConsoleA receiving an ...
Skeletonz33's user avatar
-7 votes
0 answers
163 views

I'm supposed to be taking over a server application which is sending documents to a printer. It does the following: if (OpenPrinter((LPTSTR)printer, &hPrinter, nullptr)) { wchar_t ...
Dominique's user avatar
  • 17.7k
0 votes
1 answer
81 views

I have an int array where every 4 elements describes blue, green, red and alpha values of each pixel of the image, for example: int data[] = {255,0,0,255, 0,255,0,255, 0,0,255,255} represents a 3x1 ...
Stdugnd4ikbd's user avatar
0 votes
0 answers
44 views

I am writing a one drive-like application using the CFAPI. I am trying to figure out how to set the Status icon to the Error state and to the Excluded state. Both have proven to be very difficult. The ...
Michael Foster's user avatar
Advice
0 votes
4 replies
55 views

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/d3dkmthk/ns-d3dkmthk-_d3dkmt_brightness_info I want to query the brightness level of a monitor without using WMI. This structure ...
Carter Li's user avatar
  • 189
0 votes
1 answer
89 views

The following code is used to generate a Diffie-Hellman Key using Windows CryptNG (aka Cryptography API: Next Generation, BestCrypt, bcrypt). One of the tasks is to set the Key Derivation Function to ...
RbMm's user avatar
  • 35.4k
Best practices
1 vote
2 replies
73 views

Environment: Windows, Visual Studio, low level. A bit of context: One of my project is a static library with C functions that export functionalities. Some of those C functions make use of C functions ...
CVO's user avatar
  • 1
Advice
0 votes
1 replies
68 views

Before performing any operations using NCrypt APIs, I want to check if TPM is available and enabled for the machine. I couldn't find any APIs that does this. Can anyone please let me know how to ...
Preeti 's user avatar
  • 795
0 votes
2 answers
73 views

What is the correct way to track the keys that are currently pressed, at the time that a window is being focused? More specifically, a way that guarantees that those keys which are reported as "...
Juliean's user avatar
  • 1,808
0 votes
0 answers
84 views

I'm using the Win32 library to interact with serial ports. More specifically, I'm using the GNAT.Serial_Communications library in some basic Ada code and calling the Open procedure imbedded in this ...
sirjuicebox's user avatar
2 votes
1 answer
138 views

I've been working on legacy MFC application compiled with /std:c++17. It was compiling fine until I upgraded it to use c++20. This library I've been working on has a template class depending on some ...
tftoclik's user avatar
  • 301
0 votes
2 answers
209 views

I'm working on a C++ program for a college project, and I have the following code written down: const wchar_t g_szClassName[] = L"myWindowClass"; // Step 4: the Window Procedure LRESULT ...
Nathan Rasmussen's user avatar
3 votes
2 answers
246 views

I'm working on a Color Picker widget using Qt 6.6, QWidget and QGraphicsView, I'm experiencing two issues: Issue 1) When the QGraphicsView has no zoom and the window is moved and the image is draw, ...
Niele's user avatar
  • 31
0 votes
0 answers
70 views

I'm trying to copy a WPD Portable Device file to a local C:\ folder. I got this code from Google and some MSDN examples. It works correctly on most files, However, for others, I get the exception: ...
gene b.'s user avatar
  • 12.8k
Advice
0 votes
4 replies
69 views

Is it possible to integrate Windows Explorer component as a control, created on my window? For instance, as an ActiveX control. It should work in modern Windows 11 (24H2, 25H2). Back in Windows 9x ...
Shtole's user avatar
  • 376

15 30 50 per page
1
2 3 4 5
2916