The Windows API, informally WinAPI, is Microsoft's core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. It was formerly called the Win32 API; however, the name Windows API more accurately reflects its roots in 16-bit Windows and its support on ...

learn more… | top users | synonyms (6)

0
votes
0answers
8 views

Pass extra wParam/lParam parameters?

A standard window procedure function takes this prototype: LRESULT CALLBACK WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); When a message such as WM_MOUSEMOVE or WM_CHAR, the WndProc ...
1
vote
0answers
22 views

How to detect if antivirus/firewall is blocking my application?

I have a downloader which work fine, but sometimes the user's antivirus/firewall blocks its file write access and/or downloading. Is there a way to detect that?
1
vote
1answer
17 views

Creating a new instance of a process at WM_CLOSE

I am trying to write a program which starts itself as a DETACHED_PROCESS when the user hits the close botton in the title bar and following is the code for handling the WM_CLOSE message: case ...
0
votes
1answer
24 views

Multiple Asynchronous HTTPS Requests and Completion Time

I have a program that needs to make around 200 HTTPS requests, which I've done using WinHTTP asynchronously. My code accomplishes this, but it's a lot slower than I expected it to be, at least when I ...
1
vote
1answer
19 views

Write permission on usb mass storage

I want to make an usb disk write protected, I have found doing this as a solution: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies] "WriteProtect"=dword:00000001 But this ...
1
vote
0answers
23 views

Calling WINAPI ListView_SetImageList in Qt for faster icon fetching

I have a QListView with a lot of files and their icons. QIconProvider fetches the icons via Win API, converts them to QIcon via QPixmap::fromWinHICON() and then converts them back to HICON. This ...
0
votes
2answers
38 views

Getting mouse cursor position and button state on Windows

What is the most appropriate way of getting the mouse cursor position or button state on Windows (Windows 7 and above)? I previously used DirectInput, but I am not longer using it and do not wish to. ...
0
votes
3answers
21 views

wxWidgets and Visual Studio Linker Error When Compiling with a Static Library

I'm getting this linker error when compiling wxWidgets in Visual Studio 2010. msvcrt.lib(wcrtexew.obj) : error LNK2001: unresolved external symbol _wWinMain@16 Now here's the problem. The entry ...
0
votes
1answer
19 views

Default TreeView item height

there. Here's my problem: in my program, there are two controls - native TreeView and managed DataGridView. I want to set the RowsHeight property for the DataGridView with TreeView item height, but ...
0
votes
2answers
26 views

Do apartments “live” on the server side or on the client side in a out-process environment?

I' having an hard time trying to understand COM apartments in outprocess environment. Basically I can't understand why the client is required to call CoInitializeEx to register it's own thread in an ...
1
vote
2answers
41 views

Disable autoscrolling when inserting in List View (win32 API, C)

I'm inserting an item in my common control listview like this: void InsertRow (HWND hWnd, char *col1, char *col2) { LV_ITEM lvItem; lvItem.mask = 0; lvItem.iItem = 0; ...
0
votes
0answers
53 views

Get last active window title

In my work were using application called Pivotal - eRelationships, it is a CRM app. In it every user can create list of business objects. Basically this looks like this: User select from menu ...
2
votes
1answer
50 views

displaying a message when the user taps a key

The following snippet is meant to display the message when the user types a key. Even when the focus is not on the application. But there seems to be a problem with the following code. It doesn't call ...
0
votes
0answers
10 views

the HORZSIZE of the GetDeviceCaps

I am reading the Programming Windows 5th edition.This book told me that the HORZSIZE=25.4*HORZRES/LOGPIXELSX. And the following picture is my result: If caculating the HORZSIZE by using the ...
0
votes
1answer
27 views

call multiple functions from same dll

This could be a simple one.. I searched for an answer in SO and couldnt find what am looking for and thats why I posted a question here. Following are my doubts, I'm developing an application where ...

1 2 3 4 5 780
15 30 50 per page