All Questions
7,717
questions
-2
votes
1
answer
72
views
Does anyone know why my variable (x) changed its value from 3 to 0 (1 after x++) in this program? I'm trying to make a signup system but it overwrites
Like what the title said, I was trying to make a signup system but for some reason it overwrites the array which was supposed to be defaultuser[0] = "12291955" it becomes what I inputted ...
1
vote
0
answers
42
views
Why WM_INPUT is so slow?
I was trying to make a simple dummy window manager in windows. When I tried using WM_KEY*/WM_SYSKEY* it ran perfectly fine and responsive. But when I use WM_INPUT, as shown in code below, after using ...
-1
votes
0
answers
61
views
is there any native library available to get the cpu% of all the running process on windows system? [closed]
is there a native C/C++ library for retrieving CPU usage % for particular process and process names on Windows?
I am looking for a native C/C++ library that can be used on a Windows server to retrieve ...
1
vote
1
answer
58
views
How do I make CMake find default system libraries to link against without manual script manipulation?
I am trying to build a CMake project on my new pc, I have installed the appropriate Windows 10 Dev kit. But when trying generate the build files using cmake, I am getting linking errors by the cmake's ...
-8
votes
0
answers
67
views
Windows Logon Screen Keylogger in C [closed]
I got this code for keylogging in C. It does not work for Windows OS logon screen, I think that OS blocks it somehow. What can be done to allow logging in the login screen?
#include <stdio.h>
#...
-10
votes
0
answers
71
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 ...
-2
votes
0
answers
73
views
Only the First Line of Output is Printed in C Program in VS Code on Windows Using MinGW
In C program only the first line of output is printed when I run the compiled executable. Despite the program compiling without errors, the subsequent lines do not appear.
Details:
Operating System: ...
0
votes
1
answer
29
views
How to open Audit Process Creation by coding?
enter image description here
Local Group Policy Editor->Local Computer Policy->Computer Configuration->Windows Settings->Security settings->Advanced Audit Policy Configuration->...
-2
votes
0
answers
61
views
GCC path wrong. How to set GCC path and add to environment variables [closed]
Not able to execute a program in C in VSCode it is giving this error message
The terminal process failed to launch: Path to shell executable "c:\Users\manda\OneDrive\Desktop\gcc" does not ...
0
votes
0
answers
29
views
C:\Users\DELL\AppData\Local\Temp\cctSSakm.o:test.c:(.text+0x1e): undefined reference to `get_string' collect2.exe: error: ld returned 1 exit status
I see the error
c:\Users\DELL\AppData\Local\Temp\cc61L1BV.o:test.c:(.text+0x1e): undefined reference to `get_string'
collect2.exe: error: ld returned 1 exit status
C
#include <stdio.h>
#include ...
1
vote
1
answer
83
views
What is the difference between these two functions in x64 assembly?
I'm playing around with lower level stuff in C on Windows (x64) to try and learn low level concepts. I ran across something I don't understand and just wonder if someone could explain something to me....
1
vote
1
answer
43
views
What API call will tell me the number of PIN attempts remaining on a smartcard?
I am successfully retrieving certificates and their private key as follows:
PCCERT_CONTEXT cert = NULL;
if (!(cert = CertFindCertificateInStore(sys, X509_ASN_ENCODING, 0, CERT_FIND_EXISTING, ...
0
votes
1
answer
67
views
Has Windows a C API for Linked List in user space?
I found LIST_ENTRY.
The page states Kernel-Mode Driver Reference. And clearly, I did not manage to use it in user space as expected.
Here is my test:
#include <windows.h>
#include <stdio.h&...
0
votes
0
answers
33
views
How can I declare a pointer to a constant struct literal that uses a flexible array in C if possible? [duplicate]
So I wanted to store some constant text and data for parts of a level in a game in a struct, then put pointers for all those structs in a struct for each level, and pointers for all the level structs ...
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 ...