A bit more info for you.
After the CreateProcess call but before SetWindowsHookEx I now do GetGUIThreadInfo and pass the threadId as the first parameter and a pointer to a memset GUITHREADINFO...
Type: Posts; User: cloudy
A bit more info for you.
After the CreateProcess call but before SetWindowsHookEx I now do GetGUIThreadInfo and pass the threadId as the first parameter and a pointer to a memset GUITHREADINFO...
Thanks for the reply.
Why does it work injecting into visual studio then?
I just tried the following from within the Dll:
LRESULT CALLBACK HookProc (int nCode, WPARAM wParam, LPARAM...
Thanks everyone for their help.
It is a 32bit dll into a 32 bit process.
I am calling setwindowshookex in my exe not dll.
If i change the threadId to 0 (i assume you mean do a global system...
Thanks for the reply,
it doesn't immediately return I can still see running.
Hi,
Thanks for the reply.
That is a typedef of the hook function signature that is being exported by my dll via a .def file. I.E.
typedef LRESULT (CALLBACK *DllHookProc)(int nCode,...
Hi All,
I want to use setwindowshookex for hooking a dll into one of my own applications. setwindowshookex returns null setting error code 87 (invalid parameter), which I believe is the threadid...
I am looking at programming an application that uses sockets. My concern is with thread safety as I have never used threading before except with gui worker threads. I want the server application to...
Thanks for the reply :-)
Can you explain what you mean by that please?
Hi all,
I know you shouldnt use virtual functions inside constructors because the vtable has yet to be constructed. However I have come across a problem which im convinced is a common problem so...
Hi all,
I believe a firm understanding of network programming is something every programmer should have in his armory. Although I know how to use the basics of socket programming to communicate...
Thanks for the reply!
I dont have the code with me at the moment to test. However I do know im using a static member functions (for querying values and checking if keys exist) in the object which...
Hi all,
I have wrote a registry object for opening, editing, querying and deleting registry values. When I run the program I get the following error (a message box appears):
"The procedure...
Unfortunately I dont have access to the code at the moment (I can get it again tomorrow).
The issue seems to be that the classes deriving from the Singleton pattern all have a virtual destructor...
Thanks all for the reply,
I had a bit of a jiggle around with the code and I managed to get the exact same code spitting out another error which was "undefined reference to vtable".
I...
Hi all,
I've implemented my own singleton pattern using templates for my classes to derive from. Here is a very cut down version of my code:
// THIS FILE IS SINGLETON.H
template...
Hi All,
I want to be able to iterate through a directory finding files with a specific file extension, like searching /home/username for all .sh files.
The language im using is C++.
Thanks
Hi bubba, thanks for the reply.
I've been looking into this WSACreateEvent and WSAEventSelect and from what i've gathered these events are only used when an event happepns on the associated...
Hi Guys
I'm not very experienced with thread programming. I have studied the concepts of thread programming at university so i understand how they work and the importance of setting up mutex's etc...
Hi All,
I read that the return value of the send() function is the amount of bytes of the message that was sent. Reading a tutorial I found on the internet there was this comment on send()
...
thanks dwks i didnt know a structure could behave like that. It is compiling now :)
Thanks to the rest of you aswell
Thanks for the reply mate,
I get the following error when i try it:
syntax error : missing ')' before '{'
If it makes any difference the MyStruct object is actually in the form of
Hi All,
I want to know if the following is possible.
struct MyStruct
{
int x;
Hi all,
I'm writing this template class and one of the template functions you pass a std::set to of a template type which then returns one of the elements in the set (which is of course a template...
Thanks for your help, i manged to get rid of the warning but it still isnt working.
I belive the problem is either due to the DLL not exporting the variable correctly or the app not importing it,...
Thanks for the reply :)
When i add the extern inside the #pragma shared block it makes no difference.
If i completely remove the #pragma shared stuff i get a link error saying:
unresolved...