Most voted "winapi" questions
Set of Windows Operating System libraries
Learn more…28 questions
Sort by count of
-
10
votes1
answer195
viewsCreate a resizable window
Hello, I was able to create a console window that does not show scrollbars: CONSOLE_SCREEN_BUFFER_INFO csbi; int columns, rows; COORD size; COORD BufSize; while(TRUE) { size =…
-
5
votes1
answer1927
viewsBuild GUI for Windows without using Windows API
I have been searching the internet for a way to build graphical interfaces for windows without necessarily using Windows API. I program in C# and for this, I have as solution WPF. However, I could…
-
4
votes1
answer1035
viewsHow to move the mouse automatically, realistically, using Python?
How to make the mouse move automatically, realistically, using Python? I was able to find and change a code that produces a "V" movement on the screen. However, I would like to move the mouse using…
-
4
votes1
answer49
viewsHow to know if the "Windows animations" option is disabled in Win32?
In the CSS there is the prefers-reduced-motion. This media-query says that the user prefers reduced animations (off) or not, it respects the configuration that the user chose in the Windows settings…
-
3
votes1
answer3525
viewsHow to send/receive data using Sendmessage or Postmessage API?
I need to send several data to another process, the detail and the two processes are dlls, and I have customized my message. The message I can send and receive but when trying to process the data…
-
3
votes1
answer63
views -
3
votes1
answer143
viewsCan I create a Win32 app in C#?
I am aware that C# is . NET Framework’s right-hand man, and that the default language for programming Win32 applications is C++. But, I can program an application in C#, independent of any . NET…
-
3
votes0
answers202
viewsHow to open CD-ROM in C?
I want to create an algorithm in C to open and close the CD-ROM drive, I took a look at some tutorials but they ended up not working. I would like to know which libraries you should use.
-
3
votes1
answer454
viewsQuestions about Sendmessage and Postmessage
I began to study the methods of SendMessage and PostMessage of User32.dll and I came up with some questions. I will put down the code I tested and soon after the questions, if anyone can help me.…
-
2
votes1
answer54
viewsChange mouse cursor using WINAPI
I cannot change the mouse cursor when I release the right mouse button. Part of mine code: case WM_RBUTTONUP : SetCursor( LoadCursor( hInstance, MAKEINTRESOURCE(IDC_MEUCURSOR1))); ShowCursor(TRUE);…
-
2
votes1
answer691
viewsGet titles from open windows
I have a C++ program that arrives in a certain part that I need to check if a window is open, if it runs a part of the code. How could I take the windows open and do this check? I found a link that…
-
2
votes2
answers197
viewsCreateprocess running EXE
I have an application, where the user uploads a file to the remote server, this same server when receiving this file should run this application. I’m using the Createprocess method. The problem is,…
-
2
votes2
answers362
viewsIs it necessary to invoke the functions "Showwindow" and "Updatewindow"?
I recently made an introduction to Windows API and I’m already in the window-making part. In one of the first applications I created I had to use ShowWindow and UpdateWindow after creating a window,…
-
2
votes1
answer107
viewsHow to customize the size of a window?
How I can customize the size of a window I made using Win32? My Code: #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow){…
-
2
votes3
answers1443
viewsC++ - How to create a window in windows
I’m starting to program for windows using c++ and the Devc++ program. How do I create a common window?
-
1
votes1
answer88
viewsString parse separated by null values
I am using the OpenFileName winapi with multiselect flag. When the user selects several files he returns me a string separated by nulls according to the following model: "[caminho da…
-
1
votes0
answers102
viewsScreen Capture, decrease bitmap file size
One of the functions of the project that I am working makes the capture of the user screen, however the bitmap file is getting too big, from 6MB to 8MB, It is bad to be able to send via socket or…
-
1
votes0
answers38
viewsRuby Winapi Socket TCP/IP
Hello, Currently I need to create a ruby connection using winapi only. Everything works perfectly, however, when the client sends an information, it needs EXACTLY ONE ANSWER, if there is no answer…
-
1
votes1
answer63
viewsInvalid enumerator when trying to add a filter using WFP by C#
I’m trying to bear a code of c++ to c#. My goal is to block a website using WFP. After translating the code, I seem to have missed something because when adding a filter I get the message "An…
-
1
votes1
answer616
viewsWhat is the difference between Getkeystate() and Getasynckeystate()?
I’ve always used the GetKeyState() to know if the user is pressing a key, but I see that many people use more the GetAsyncKeyState(). With that came to me the following doubts: What is the…
-
1
votes1
answer38
viewsWhat should be returned in WM_CREATE message to indicate error?
I’m sending the message WM_SETFONT for each control to define the source of the same and I am using the function CreateFont to create the source. The function CreateFont is called when the message…
winapiasked 8 years, 6 months ago Jhonas Boeno 162 -
1
votes1
answer74
viewsGetopenfilename() used with user personification
I have a process that requires SYSTEM privileges and for this purpose is launched by a service. When this process executes the function Getopenfilename() to open a select file dialog box, I get an…
-
1
votes1
answer226
viewsHow to detect a click or other mouse event in win32gui’s Notifyicon?
I’m trying to modify the library win10toast so that I can pass a callback that runs when the user clicks on the Windows 10 notification that I show. The "meat" of the library, which I’ve mastered as…
-
0
votes0
answers48
viewsDynamic memory with c++ pointers
Hello, I’m starting to use dynamic memory in c++, but I ran into a problem. When I do new CHAR_INFO[3], says cannot Convert 'CHAR_INFO* {aka _CHAR_INFO*}' to 'int*' in assignment and still misses…
-
0
votes0
answers35
viewsC++ Screen position gets weird when I try to convert from Getcursorpos to Sendinputs function
I used the function GetCursorPos to pick up positions on the screen I would like the mouse to be able to click to perform a task for me and automate the service. I tested selecting these positions…
-
0
votes0
answers19
viewsService Name through PID
I have an application that needs to stop a service and, if this service does not stop, run a Killtask. I can currently return the process path and your PID, but I cannot return the Service Name…
-
0
votes1
answer51
viewsWhat is the "hProcess" parameter of the Win32 API Writeprocessmemory function?
I am creating a program that needs to read and write a value in a given memory address. For this, I am using the functions ReadProcessMemory and WriteProcessMemory Win32 API - through the package…
winapiasked 3 years, 10 months ago JeanExtreme002 5,663 -
0
votes0
answers22
viewsWinapi - Receive the process name and PID in C++
I am working on Windows processes, detect process, receive image name (Program) and your PID using Winapi. #include <windows.h> #include <tlhelp32.h> #include <tchar.h> #include…