473,395 Members | 1,936 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,395 software developers and data experts.

Post Windows messages?

Hello,

do anythink know, how I can post native Windows-Messages via .NET, how it
were possible about the Windows-API with the function PostMessage(Hwnd,
Message, WParam, LParam)? Or is it required to import this Windows-API
function about DllImport attribute?

Thanks in advance,
Hubert
Nov 15 '05 #1
2 2367
You need to import that API and use it.

-vJ

"Hubert Hermanutz" <hh********@kavo.de> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
Hello,

do anythink know, how I can post native Windows-Messages via .NET, how it
were possible about the Windows-API with the function PostMessage(Hwnd,
Message, WParam, LParam)? Or is it required to import this Windows-API
function about DllImport attribute?

Thanks in advance,
Hubert

Nov 15 '05 #2
Hello,

You should import the PostMessage API and it works just fine this way -
tested it myself.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Hubert Hermanutz" <hh********@kavo.de> wrote in message
news:el**************@TK2MSFTNGP10.phx.gbl...
Hello,

do anythink know, how I can post native Windows-Messages via .NET, how it
were possible about the Windows-API with the function PostMessage(Hwnd,
Message, WParam, LParam)? Or is it required to import this Windows-API
function about DllImport attribute?

Thanks in advance,
Hubert


Nov 15 '05 #3

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

Similar topics

0
by: piyush | last post by:
Sorry for repeated posting but I couldnt get things right/completely in the first post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
0
by: Edward Diener | last post by:
In Borland's C++ Builder, one could handle Windows messages in member functions of a control-derived class by specifying a message map and VCL_MESSAGE_HANDLERs, as well as by overriding the windows...
0
by: BK Kim | last post by:
Hello. I am tryring to find a way to capture some of the windows messages ( eg. messages for creating, deleting files ) in c#. In windows application, i can override wndProc method to capture...
0
by: piyush | last post by:
Sorry for repeated posts, I couldnt get things right and complete in the previous post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
5
by: GTi | last post by:
I need to get access to the Windows Messages queue (WM_xxx) I have a old C application that sends some messages to all windows on the computer. How can my new C# application receive this message?
4
by: KlassifiedBBS | last post by:
I want to create a game bot for a video chat program with a closed API. I can see the windows messages when I hook up Spy++ to the window in question. I have done numerous Googles for some kind...
3
by: Javaman59 | last post by:
I've spent the last 3 years programming VC++, and learnt that Windows programming is all about messages. Now I'm doing C#, and there isn't a windows message to be seen! Now, I don't miss those...
2
by: Joe Pacelli | last post by:
Okay I'm trying to write an application to monitor a running process. Right now I have a front end which allows the user to pick the programs they want to monitor. The interval between how often I...
2
by: andrewbb | last post by:
I'm developing a windows service that needs to listen for a particular WM_ message. Is there a way to listen for a message from .NET service application? This would seem to be a simple thing,...
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.