Anything wrong with this in general?
CallingFunction()
{
CreatePipe()
CreateMutex()
CreateThread( ThreadFunction )
while(there is data left to send)
{
WriteFile(send data in 256 byte chunks)
}
WaitForSingleobject() //don't return until ReadThread is done
return 0;
}
ThreadFunction()
{
WaitForSinglOb...
I have a string of values, and I want to simulate key press events in a window for each character.
I plan on sending WM_KEYDOWN, WM_CHAR, and WM_KEYUP events to the window (as that is what seems to happen whan a key is manually pressed).
Those messages require an int be sent in the wParam based on a table of virtual key codes. I can l...
This might be rather trivial, however, after massive amounts of Googling, i haven't been able to find an answer.
Let's say I have a handle to device context (naturally, in Windows environment):
HDC hdc;
How can I get the width and height of it?
...
I'm making a vector application for Windows. Right now i'm using wglUseFontOutlines to generate display lists which wrks well, except I would like to be able to let the user remodel the font. I would also like to use VBO's instead of DL's for this. Does Microsoft provide a way to get the points for this, or atleast the outlines, I could ...
1) How to call winapi functions from PHP?
2) How to load any dll file and call functions from it?
Platform: ms windows, php5
php_w32api extension is not avalaible.
Maybe there is solution using COM objects?
...
Hello
To get the removable drives i have used GetDriveType ( ) function
Is it possible to check whether a drive is floppy drive or not ?
Please let me know your suggestions on this...
Thank you dor any help
...
Hi, how can i access to the socket, that is used by web browser. Or how can i get data transfered between web browser and web server.
I need to connect to that socket and modify the data, the web browser sends and recieves. What concrete functions should i use? I studiend the msdn documentation about this, but didnt noticed how do i get...
hello experts....
Any suggstions on getting the interface type for a drive letter ( G: ) ( not using wmi )
Thank you
...
I would like to compare my application for handwritten mathematical symbols recognition with the Math Input Panel (MIP) contained in Windows 7. I have a library of recorded mouse strokes representing different mathematical formulas and I need to send them to the MIP to measure its performance.
I tried to simulate mouse move but it's not...
I need to check programatically whether a given EXE binary is a COM EXE or Win32 EXE. Is there any way to do this? Is the Import Table an answer to this? If somehow I can determine this from the registry, where in the registry should I look to find out if a binary is regsitered for COM? (This is specific to EXEs, as DLLs are not a proble...
Grretings to all..
i have a card reader ( no memory stick is inserted ).
when i insert into my compter it shows a drive in My Computer...
why it shows like that....
Is it possible to know whether a drive is having a media ( sorry i am not sure how to call it ) or not...
...
Guys, I'm having this weird error with my application that is supposed to copy files from a directory given from the command line to another directory.
I'm using of course the three API functions; CreateFile, ReadFile, and WriteFile. I can't use the CopyFile API.
Note that the compiler doesn't report any errors nor any warnings.
hFil...
All functions return CString, this is a MFC code and must compile in 32 & 64 bits.
Currently I'm using
CString sURI = GetURL();
sURI += GetMethod();
sURI += "?";
sURI += GetParameters();
Exists any manner to do the same like:
CString sURI = GetURL() + GetMethod() + "?" + GetParameters();
...
What's the easiest way to save a bitmap (I have an HBITMAP handle) to a TIFF file using unmanaged Win32?
It would be trivial using GDI+, but I'm limited to GDI. Thanks in advance!
...
I have a C++ Win32 application that was written as a Windows GUI project, and now I'm trying to figure out to make it into a Service / GUI hybrid. I understand that a Windows Service cannot / should not have a user interface. But allow me to explain what I have so far and what I'm shooting for.
WHAT I HAVE NOW is a windows application...
So I'm trying to get this nuclear instrumentation hardware to work.
I have installed 64 bit drivers (I'm using Windows 7 64 bit) and I have downloaded the dll's that go with it.
When I add the dlls and try to use the functions in a win32 console application project in visual studios, it gives me a linker error:
Error 1 error LNK2...
Hello,
Is there any attribute or property or method available in type library which tells that whether given type library is in proc COM server or Out of proc COM server.
Regards
Usman
...
I basically want to get the outline for a character. I was wondering how I could do this without drawing to the DC. Could I do something like this: (Psudocodeishly)
BeginPath()
TextOut("H")
EndPath()
GetPath()
Will something like this work for GetPath? Will it return the glyph outline that I can then draw?
Otherwise, how else could...
I have injected my DLL into a target application where I've hooked few WINAPI-functions
as well. One of them is DrawTextExW. I'm trying to replace all 'l' letters to '!' before
it prints it out. My solution works fine for a few seconds, but then the target application crashes. I really don't understand why.
Here's the function:
Edit - ...
Microsoft's docs say:
Specifies that the corresponding point
in lpPoints is a control point or
ending point for a Bèzier curve.
PT_BEZIERTO values always occur in sets of three. The point in
the path immediately preceding them
defines the starting point for the
Bèzier curve. The first two
PT_BEZIERTO points are...