473,406 Members | 2,867 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,406 software developers and data experts.

ASP.NET + WIN32 API

Hello,

Can I use WIN32 API method such as PostMessage through
ASP.NET or Web Service directly?

I have tried, but failed.
Do aspnet_wp.exe block this kind of "direct" communication
due to security reason?

Many Thanks
Chapman
Nov 17 '05 #1
4 2432
If you are using C#, you can use these in blocks of unsafe code.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"chapman" <ch*****@tsl.net.hk> wrote in message
news:07****************************@phx.gbl...
Hello,

Can I use WIN32 API method such as PostMessage through
ASP.NET or Web Service directly?

I have tried, but failed.
Do aspnet_wp.exe block this kind of "direct" communication
due to security reason?

Many Thanks
Chapman

Nov 17 '05 #2
Sounds like a bad idea to me. Defeats the purpose of a managed environment.
"chapman" <ch*****@tsl.net.hk> wrote in message
news:07****************************@phx.gbl...
Hello,

Can I use WIN32 API method such as PostMessage through
ASP.NET or Web Service directly?

I have tried, but failed.
Do aspnet_wp.exe block this kind of "direct" communication
due to security reason?

Many Thanks
Chapman

Nov 17 '05 #3
The default user account ASPNET likely does not have permission to do such
things.
Try using impersonation to run under a different account.
Here's more info:
http://msdn.microsoft.com/library/de...ersonation.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"chapman" <ch*****@tsl.net.hk> wrote in message
news:07****************************@phx.gbl...
Hello,

Can I use WIN32 API method such as PostMessage through
ASP.NET or Web Service directly?

I have tried, but failed.
Do aspnet_wp.exe block this kind of "direct" communication
due to security reason?

Many Thanks
Chapman

Nov 17 '05 #4
Thanks, I will try this out.
We want to use the unsafe code, because I require to
integrate our new program (written in C# and run on .NET
framework) with the old one (Win32 C++ program).

Chapman

-----Original Message-----
If you are using C#, you can use these in blocks of unsafe code.
--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"chapman" <ch*****@tsl.net.hk> wrote in message
news:07****************************@phx.gbl...
Hello,

Can I use WIN32 API method such as PostMessage through
ASP.NET or Web Service directly?

I have tried, but failed.
Do aspnet_wp.exe block this kind of "direct" communication due to security reason?

Many Thanks
Chapman

.

Nov 17 '05 #5

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

Similar topics

1
by: RL | last post by:
Hi all, I am new and am lost with Win32::Process stuff. I want on perl script to start a process, then another perl script to terminate the same process. I can start a process using......
2
by: RL | last post by:
Hello Perl gurus, 1. I have a web page where I can push a button (dospawn.html). 2. This button calls a CGI script (spawnboss.cgi) 3. spawnboss.cgi calls a forking perl script (forkme.pl) 4....
5
by: Bryan Parkoff | last post by:
Please provide me the information when it is not in the correct newsgroups. I have been using C and C++ language for a long time when it is time for me to learn Win32 API functions that they can...
2
by: Tony Johansson | last post by:
Hello!! When you for example use C++.net environment for develop an GUI application does this mean that you doesn't use win32 API as much as when you had visual studio 6.0 because of the large...
8
by: Tony Johansson | last post by:
Hello! I just wonder what the difference is between a native win32-app and MFC. What I know is that you can use Win32 API in both cases. I think an MFC application is connected with a GUI...
3
by: Gil | last post by:
I need to create a web page in which its content should be controlled by some win32 application. this application may add or remove some gif images from the page and it should be smooth as possible...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
0
by: jbenezech | last post by:
Hi all , I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform...
3
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline =...
6
by: Perl Beginner | last post by:
Good morning all, I had to reinstall Perl (ActivePerl 5.10.0 Build 1004) on my computer (Windows XP), the install went fine. however, I'm having issues loading Win32-GuiTest using the repository in...
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?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.