winapi
VC++ ReadFile Unexpectedly Blocks While Reading a Closed Anonymous Pipe
I am trying to create a child process running any exe command and redirect all its stdio and stderr to my parent process through an anonymous pipe. But when my parent process tries to do a ReadFile()[详细]
2023-04-12 23:12 分类:问答How can I extend the length of a memory-mapped file?
In Delphi 7, I open a file with CreateFileMapping then get a pointer by using MapViewOfFile. How can I expand the memory and add some characters to the memory and have it saved to that file?[详细]
2023-04-12 22:34 分类:问答SendMessage to Firefox, on cursor position
The code below sometimes works: it inserts text f开发者_StackOverflow社区rom tEdit, but only in \"Notepad\", \"Word\", \"ICQ\". Such software like Firefox or Google Chrome doesn\'t work with it.[详细]
2023-04-12 22:32 分类:问答Exposing a class from Static Library
I am developing a parser library where i parse data and store it in different data structures. The design of the library is such that it will have a DataProvider, Parser and DataStore class. The DataS[详细]
2023-04-12 22:31 分类:问答Does Process Explorer support API or call from Console Command?
Suppose I\'ve installed multiple version of a software, some of the DLLs are register as COM. For example:[详细]
2023-04-12 21:39 分类:问答Window without client area in WinAPI
On these screenshots we can see unordinary window frame in different applications: QIP logo on its login window frame (not client area) - http://postimage.org/image/2fdjg0h44/[详细]
2023-04-12 20:19 分类:问答How do I get the number of displays in windows?
I want to count the number of active displays. For Mac I can use the following: CGDisplayCount nDisplays;[详细]
2023-04-12 20:03 分类:问答Get Process Status with WinApi in C (Active or Not)
At my operating system course in a project we have to 开发者_如何学Goget process status. We are coding with c.[详细]
2023-04-12 19:50 分类:问答custom combobox win32
I am trying to implement an auto-suggest feature in an win32 combobox (C++). I want to achieve a behaviour that is similar to the google auto suggest function. When the user types something into the e[详细]
2023-04-12 19:13 分类:问答File redirection not working if I SetCurrentDirectory to C:\Program Files in 32 bit app on Win7 64 bit, should it not navigate to (x86) folder?
Here is my test code below. //This correctly prints C:\\Program Files from 64 app on 64 bit Win7 and //C:\\Program Files (x86) 32 bit app on 64 bit Win7[详细]
2023-04-12 19:01 分类:问答