Can’t open a file using WinAPI
I’m trying to use the createFile
and it says it can’t open it (Could not open file (error 2)). I tried to make the fileName the name of the file and the path to it. The file is just a text file with some words in it. I tried to “Verify File Access”, “Testing with a Simplified Path (LPCSTR fileName = "example.txt"
)”, “Check File Path Syntax (LPCSTR fileName = "C:\Users\YourUsername\Desktop\example.txt"
)”, “Confirm File Location”, “Confirm Working Directory”.
Can’t open a file using WinAPI
I’m trying to use the createFile
and it says it can’t open it (Could not open file (error 2)). I tried to make the fileName the name of the file and the path to it. The file is just a text file with some words in it. I tried to “Verify File Access”, “Testing with a Simplified Path (LPCSTR fileName = "example.txt"
)”, “Check File Path Syntax (LPCSTR fileName = "C:\Users\YourUsername\Desktop\example.txt"
)”, “Confirm File Location”, “Confirm Working Directory”.
How to competently open and manage a browser using WinAPI
I’m making a YouTube player and I need the following:
listening to keyboard input and sending it to other pc. CPP
im working on a remote desk protocol and need to share the keyboard input. im just starting but i know i will meet a lot of troubles later when needing to share shortcuts like ctrl+c, alt+tab etc…
How to correctly resolve window style value to macro text?
I wrote a code to resolve a window style value to text macro, but the output is wildly different from the style value; why and how to fix it?
How to read memory of both x86 and x64 processes as a x86 program?
I have been using the ZwReadVirtualMemory()
function to read the memory of different processes. However, I’ve encountered an issue: this function appears to only work if the target process is of the same architecture (i.e., x86 or x64) as the program making the call.
How to read the target of a shortcut file with all its arguments in c++
I attempted to implement the solution from this Stack Overflow answer. However, I am encountering an issue where it only resolves the path to the executable (exe), without including any arguments that may be present. Is there a way to obtain the full “raw” target, including both the executable path and its arguments, rather than just the executable path alone?
Determine if a given process was started from a shortcut
I am asking this question again despite this existing answer, because it is outdated. The RTL_USER_PROCESS_PARAMETERS structure
no longer includes a WindowTitle
field. I am wondering if a solution which doesn’t require code injection into the target process still exists.
C and Win32: error 126 occurs without any visible reason
i am creating a Win32 program in C, and i had the error 126 when executing the following code:
How should I modify my code so that mouse-drawn lines remain on the canvas of the window during window scrolling
My English is not good, So, I am sorry if you can’t understand my problem.