473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Hooking DLL

Hi,
I want to create a dll in Visual Studio 2003 that is suitable for
hooking thread-specific messages. What sort of project do i need to
create for this?

Many thanks,
James Randle.

Jan 16 '07 #1
6 1902
>I want to create a dll in Visual Studio 2003 that is suitable for
>hooking thread-specific messages. What sort of project do i need to
create for this?
Probably a class library project.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 16 '07 #2
OK, thanks!

Do i need to set any additional compliation flags, etc..

Cheers again,
James.
Mattias Sjögren wrote:
I want to create a dll in Visual Studio 2003 that is suitable for
hooking thread-specific messages. What sort of project do i need to
create for this?

Probably a class library project.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 16 '07 #3
Hi,

The only Class Library project is marked (.NET)!

James.
pigeonrandle wrote:
OK, thanks!

Do i need to set any additional compliation flags, etc..

Cheers again,
James.
Mattias Sjögren wrote:
>I want to create a dll in Visual Studio 2003 that is suitable for
>hooking thread-specific messages. What sort of project do i need to
>create for this?
Probably a class library project.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 16 '07 #4
Here's something a generous person just found for me!

http://www.thescripts.com/forum/thread284744.html

If you need a native DLL, it's more tricky. You choose New
Project -Win32 Console Application, click OK, and then read the
options carefully and you should find a radio button in the wizard that
switches to DLL mode. In VC++ 2003 it's pretty much hidden (it took me
a
while to find the first time), in 2005 it's much more visible (use the
Next button in the wizard).
pigeonrandle wrote:
Hi,

The only Class Library project is marked (.NET)!

James.
pigeonrandle wrote:
OK, thanks!

Do i need to set any additional compliation flags, etc..

Cheers again,
James.
Mattias Sjögren wrote:
I want to create a dll in Visual Studio 2003 that is suitable for
hooking thread-specific messages. What sort of project do i need to
create for this?
>
Probably a class library project.
>
>
Mattias
>
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 16 '07 #5
>The only Class Library project is marked (.NET)!

I assumed you meant C# projects since you're posting in a C#
newsgroup. Silly me.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 16 '07 #6
Mattias,
Don't be so hard on yourself :0P - it was an easy enough mistake to
make since i was infact rather vague with my description. Apologies.

James.

http://groups.google.co.uk/group/mic...79700039c6adc6

contains the solution i was looking for...ye haw.
Mattias Sjögren wrote:
The only Class Library project is marked (.NET)!

I assumed you meant C# projects since you're posting in a C#
newsgroup. Silly me.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jan 17 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raja | last post by:
Dears, I apologize in advance if this is the wrong place to post, sorry for the inconvenience. Is there any book or web site or any kind of resource is available for Windows hooking and...
0
by: Jim Hubbard | last post by:
Is GDI Hooking possible in VB.Net?
3
by: Seth Gecko | last post by:
Hi I want to make an application (in C#) that can catch text written to a Richedit control in another application. Using Spy++ I can see that the message I want to intercept is called...
1
by: Matthew Kelly | last post by:
I have pulled together a VB.net project that hooks the keyboard (Ref. Paul Kimmel's hooking program) and allow the user to send "mouse right clicks" via the SendInpuut function (mouse emulation...
79
by: pinkfloydhomer | last post by:
I want to scan a file byte for byte for occurences of the the four byte pattern 0x00000100. I've tried with this: # start import sys numChars = 0 startCode = 0 count = 0
3
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events....
0
by: webstuff | last post by:
Hi, I have a C# .NET application with lots of strings added through the visual designer (thus stored in the form's .resx file) specifying the application's company name and product name . ...
5
by: Ryan Ginstrom | last post by:
Apropos recent threads about GUI editors, coming from a Win32/WTL C++ background, I actually like the idea of being able to (easily) create GUIs programmatically. But I still see a lot of the...
8
by: pigeonrandle | last post by:
Hi, Has anyone had any experience with hooking messages in other application windows (like SPY++). I want to listen for WM_MOVE messages, but can only seem to find examples of Keyboard and Mouse...
0
by: joemango | last post by:
Hi everyone, I was just reading the following artilce titled: "Spy: A Windows CE API Interceptor" by Dmitri Leman in Dr. Dobbs Journal, September 02, 2003 located at ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.