Questions tagged as 'winapi'

1
answer

How 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 get sends and receives it but when trying to treat the data coming from WParam of the violated acce...
asked by 05.02.2015 / 00:53
1
answer

Change mouse cursor using WINAPI

I can not change the mouse cursor when I release the right mouse button. Part of my code: case WM_RBUTTONUP : SetCursor( LoadCursor( hInstance, MAKEINTRESOURCE(IDC_MEUCURSOR1))); ShowCursor(TRUE); return 0;...
asked by 23.03.2014 / 21:27
1
answer

String parse separated by null values

I'm using OpenFileName of winapi with the flag of multiselect. When the user selects multiple files it returns me a string separated by nulls as follows: "[caminho da pasta]"[caminho da pasta]%pre%[arquivo 1]%pre%[arquivo 2]%pre%[arquiv...
asked by 28.05.2014 / 16:53
1
answer

How to detect a click or other mouse event in NotifyIcon from win32gui?

I'm trying to modify the win10toast library 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 condested as much as I could to create a minimal...
asked by 30.06.2018 / 23:59
1
answer

What should be returned in the WM_CREATE message to indicate error?

I am sending the WM_SETFONT message to each control to set the source of the same and I am using the CreateFont function to create the source. The CreateFont function is called when the WM_CREATE message is received. LRES...
asked by 09.06.2016 / 02:27
1
answer

GetOpenFileName () used with user impersonation

I have a process that needs SYSTEM privileges and for this to be released by a service. When this process runs the GetOpenFileName () to open a select files dialog, I get an error message saying    C: \ Windows \ system32 \ config \ systemp...
asked by 24.08.2017 / 13:41
1
answer

Invalid Enumerator when trying to add a filter using WFP by C #

I'm trying to port a c ++ code for C #. My goal is to block a site using WFP. After translating the code, it seems that I made a mistake because when I add a filter I receive the message "An enumerator is not valid" (FWP_E_INVALID_ENUMERATOR)....
asked by 01.06.2016 / 01:20
0
answers

Ruby 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 AN ANSWER, if there is no response or there is more than one data sent by the serv...
asked by 16.05.2015 / 02:26
0
answers

Screen Capture, decrease bitmap file size

One of the functions of the project I'm working on captures the screen of the user, however the bitmap file is getting very large, from 6MB to 8MB, it is bad to be able to send via socket or in future to make a stream by frame, someone could hel...
asked by 10.02.2015 / 18:55
3
answers

C ++ - 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?     
asked by 01.05.2018 / 13:46