473,770 Members | 5,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

como trabajar con apis de windows, en .net ?

¿Como se trabaja con las Api de Windows, utilizando C# .Net ?
gracias...

---------------------------------------------------------------------------
---------------------------------------------------------------------------

Utilizando .Net, como puedo obtener la dirección ip o el nombre del cliente
remoto que está conectado por Terminal Service a un Servidor de Terminal ?

En el Terminal Servide Manager me muestra el nombre del cliente remoto, o
sea del equipo remoto, pero no se como obtenerlo utilizando C# .Net.

gracias.
Nov 18 '05 #1
1 3172
debes utilizar algo así

using System;
class callAPICls {
[dllimport("user 32.dll")]
public static extern int MessageBoxA(int h, string m, string c,
int type);

public static int Main()
{
return MessageBoxA(0, "Hello World!", "Caption", 0);
}
}

mira un ejemplo en http://www.dotnetspider.com/Technology/KBPages/569.aspx

saludos
--
José Miguel Torres
jtorres_diaz~~A RROBA~~terra.es
http://jmtorres.blogspot.com
"Liber" <li***********@ hotmail.com> escribió en el mensaje
news:eV******** *****@tk2msftng p13.phx.gbl...
¿Como se trabaja con las Api de Windows, utilizando C# .Net ?
gracias...

-------------------------------------------------------------------------- - -------------------------------------------------------------------------- -
Utilizando .Net, como puedo obtener la dirección ip o el nombre del cliente remoto que está conectado por Terminal Service a un Servidor de Terminal ?

En el Terminal Servide Manager me muestra el nombre del cliente remoto, o
sea del equipo remoto, pero no se como obtenerlo utilizando C# .Net.

gracias.

Nov 18 '05 #2

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

Similar topics

2
1522
by: Tanuki | last post by:
Hi All: I am doing some development in VC++ using some llibraries downloaded from the web. The library comes in 3 files <mylib.dll>, <mylib.lib>, <mylib.exp> and I also have <mylib.h>. As stated in the readme guide provided, to use the library, we need to call APIs defined inside the library. In the <mylib.h> file, there are defined APIs as follows:
1
1174
by: cindy liu | last post by:
Hi, I'd like to create xml string based on my xsd file. Is there any .Net APIs to do this? Like in BizTalk 2004, you can generate xml instance based on xsd file. Thanks in advance!!! Cindy
1
1137
by: Jigar Mehta | last post by:
Hye all, I am making a VC# project in which I am using managed c++. So, made my class structure, now I need to use windows APIs in the code so, what to include for doing that... Is there any file that needs to be included or is there any namespace that is to be included??? Please help me out, I am stuck here.. even, HWND sturctures objects are illegal presently... --
11
3605
by: Liber | last post by:
¿Alguien podría explicarme como enviar mails desde un WindowsForm ?, puedo hacerlo con un WebForm, pero no se como hacerlo con WindowsForm, podrían darme un ejemplo. Gracias, Saludos, Liber.
1
3034
by: David Roza | last post by:
Groups Home | Help | Sign in Web Images Groups News Froogle Maps more » Advanced Groups Search
2
7465
by: denet iglesias | last post by:
hola: yo quisiera saber como puedo hacer que un panel se ponga transparente poco a poco, pero que ademas se pongan transparentes los controles que estne dentro de el, por ejemplo un picturebox y un label, yo he logrado que el panel se ponga transsparente pero no los controles dentro de el... Por favor si alguien me puede ayudar *** Sent via Developersdex http://www.developersdex.com ***
1
2572
by: =?Utf-8?B?U3JpbWFu?= | last post by:
Has anyone worked on Windows Desktop Search (WDS) APIs for Windows Vista? Need some help in resolving Vista Administrator issue for using WDS.
0
2254
by: librosur08 | last post by:
Como obtener datos del gestor de correos predeterminado y el puerto SMTP Tengo una aplicación que envía por correo una tabla convertida en archivo de texto de delimitación fija y me gustaría que el programa enviara dicho correo de manera automática. Es decir que el usuario no intervenga para nada en el proceso, más que lo que debe hacer, presionar un botón de comando, y el correo sea enviado en un segundo plano (creo que así se dice)...
4
4691
by: goosfancito | last post by:
hola. Quiero saber como hacer para identificar de que tipo es un archivo, como ser: quiero que el usuario seleccione un archivo excel y despues poder verificar que asi es y que no es un archivo que se renombro con extension excel. Graicas.
0
9592
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10231
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8887
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.