Questions tagged as 'winapi'

0
answers

Create a resizable window

Hello, I've been able to create a console window that does not show the scroll bars: CONSOLE_SCREEN_BUFFER_INFO csbi; int columns, rows; COORD size; COORD BufSize; while(TRUE) { size = GetLargestConsoleWindowSize(GetStdHandle(STD_OUTPUT_H...
asked by 17.07.2018 / 13:22
1
answer

Build GUI for Windows without using Windows API

I have searched the internet for a way to build graphical interfaces for windows without necessarily using the Windows API. I program in C # and for that, I have the WPF solution. However, I could not find any solution in C ++. My goal is...
asked by 24.03.2015 / 04:02
1
answer

Can I create a Win32 application in C #?

I am aware that C # is the right arm of the .NET Framework, and that the default language for programming Win32 applications is C ++. But, can I program an application in C #, regardless of any .NET Framework library? In other words, I can cr...
asked by 08.08.2017 / 05:53
1
answer

How to move the mouse in a realistic way 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" -shaped movement on the screen. However, I would like to move the mouse using non-linear movements. I found som...
asked by 12.01.2017 / 18:53
0
answers

How to open CD-ROM in C? [closed]

I want to create a C algorithm to open and close the CD-ROM drive, I took a look at some tutorials but they did not work. I would like to know which libraries to use.     
asked by 11.10.2017 / 13:03
2
answers

Is it necessary to invoke the "ShowWindow" and "UpdateWindow" functions?

Recently I did an introduction to the Windows API and I'm already in the part of creating windows. In one of the first applications I created I had use of ShowWindow and UpdateWindow after creating a window, but even without them t...
asked by 27.06.2015 / 00:10
2
answers

CreateProcess 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, the file directory is already defined in a std...
asked by 13.01.2015 / 02:27
1
answer

Checking Directory (WINDOWS)

How do I check if a directory exists using C ++ and Windows API ?     
asked by 13.05.2015 / 21:28
1
answer

Get open window headings

I have a program in C ++ that comes to a certain extent that I need to check if a window is open, if it does execute a part of the code. How could I get the windows open and do this check?    I found a link that could help with this, the l...
asked by 05.12.2014 / 14:27
1
answer

How to customize the size of a window?

How can I 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){ MessageBox(NULL, "HELLO WORLD!","JANELA!", 0)...
asked by 29.07.2016 / 14:18