Skip to main content

All Questions

Tagged with
1 vote
0 answers
33 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 ...
LakshyaK2011's user avatar
-8 votes
0 answers
60 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> #...
Skywater's user avatar
-10 votes
0 answers
70 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 ...
Utkarsh Kumar's user avatar
-2 votes
0 answers
71 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: ...
BinaryBard's user avatar
0 votes
1 answer
28 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->...
l P Platelet's user avatar
-2 votes
0 answers
53 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 ...
Bibek Mandal's user avatar
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 ...
ayham's user avatar
  • 1
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....
Stephen Francis's user avatar
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, ...
Graham Leggett's user avatar
0 votes
1 answer
66 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&...
OlivierM's user avatar
  • 3,082
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 ...
nathanael grix's user avatar
0 votes
0 answers
82 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 ...
0___________'s user avatar
2 votes
0 answers
34 views

How to reference data added to the end of position independent shellcode in Windows x86

I have a C program that parses the PEB and gets kernel32.dll and then with a custom GetProcAddress it gets the address to LoadLibrary. After that I get the address of MessageBoxA. My goal is to ...
drexco's user avatar
  • 21
0 votes
1 answer
54 views

Can I keep the handle open for the whole program lifetime

I have a class for my Windows application which controls the panel brightness. h = CreateFile(displayName, GENERIC_READ | GENERIC_WRITE, 0, NULL, ...
0___________'s user avatar
1 vote
0 answers
47 views

vcpkg doesn't install .so or .a files for libmagic C library

I am attempting to use libmagic in a rust project, using the magic rust crate which provides rust bindings for the libmagic C library. Instructions for Windows say to install libmagic using vcpkg, ...
Ecko's user avatar
  • 1,070

15 30 50 per page
1
2 3 4 5
515