473,770 Members | 2,144 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WTSOpenServer Windows 2000 Professional issue

Hi,

To get the USERNAME of all process running in local/remote system I am
using the WTSOpenServer and WTSEnumeratePro cesses API's but when I invoke
the WTSOpenServer in Windows 200 Professional it s returning 1722(The RPC
server is unavailable.) error, but the same program is working fine in
Windows 2000 Advance Sever and Windows 2003.

Any idea why it is not working in Windows 2000 professional, from net in
found that Windows 2000 professional is not a "Terminal Server" but I found
in the MSDN that the above API will support in Window 2000 Professional.

Can any one can help me out..

Note : I want to get the USERNAME without WMI in both local/remote systems.

Thanks

Manu
Nov 2 '06 #1
1 2113

"Manu" <di******@hotma il.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
| Hi,
|
|
|
| To get the USERNAME of all process running in local/remote system I am
| using the WTSOpenServer and WTSEnumeratePro cesses API's but when I invoke
| the WTSOpenServer in Windows 200 Professional it s returning 1722(The RPC
| server is unavailable.) error, but the same program is working fine in
| Windows 2000 Advance Sever and Windows 2003.
|
|
|
| Any idea why it is not working in Windows 2000 professional, from net in
| found that Windows 2000 professional is not a "Terminal Server" but I
found
| in the MSDN that the above API will support in Window 2000 Professional.
|
|
Well, the API is supported on W2K Pro, that is, the API is there and can be
called, however, the argument must refer to a TS enabled system and W2K PRO
is not such system.

|
| Can any one can help me out..
|
|
|
| Note : I want to get the USERNAME without WMI in both local/remote
systems.
|

If you don't want to use WMI, you'll have to implement a similar
client/server architecture yourself, Windows has no API's that can be used
to query processes running on remote systems.

Willy.


Nov 2 '06 #2

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

Similar topics

5
1917
by: Alex | last post by:
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked well in Windows 2000 server but not in Windows 2000 Professional. What is different between server and professional. My code is below: Set iMsg = Server.CreateObject("CDO.Message") Set iConf = Server.CreateObject("CDO.Configuration") Set Flds = iConf.Fields Flds("cdoSendUsingMethod") = cdoSendUsingPort Flds("cdoSMTPServer") = "127.0.0.1"...
2
393
by: Dave | last post by:
I have developed a VB.net application that transfers a SOAP wrapped message to another server securely(using SSL and sever/client certificates). When I run this app from a Windows 2000 Professional box everything works as expected, the secure channel is established and the message is sent properly. When I use the exact same app on the Windows 2000 Server(running IIS) box the app does not work properly. I have used a packet sniffer to...
0
291
by: big A | last post by:
I am experiencing an issue that i have seen posted with various descriptions but lacks any answers. I have .Net Framework 1.1 services that run without issue on windows 2000 professional; however when set to automatic on windows 2000 server the service control manager reports that the "service hung on starting". Sometimes when the message is reported, the service starts anyways. Other times it doesn't. I have created an empty service...
5
4001
by: Joseph Barbaro | last post by:
I am trying to install DB2 Universal Database Enterprise Server Edition Version 8.1 (for Windows operating systems on 32-bit systems) on Windows 2000 Advanced Server that can be either standalone or part of a network. I am trying to avoid installing Active Directory and setting up the server as a domain controller. 1) Must DB2 UDB Enterprise be installed on a domain controller or can it be installed on W2K Advanced Server set up as a...
2
1517
by: umilmi81 | last post by:
I am having a problem creating an ASP.NET application in Visual Studio.NET 2003, installed on Windows XP Professional I get a message stating that I do not have ASP.NET 1.1 installed, so I can not create web applications I downloaded the update that is supposed to install ASP.NET 1.1, but I'm still getting the message My research leads me to understand that VS.NET 2003 wont allow users to create web applications on anything "less" than...
0
1176
by: DavidS | last post by:
Have Visual Studio.NET installed on Microsoft 2000 Professional OS. No issue EVER with SQL connections - MDAC components too. Purchased new laptop and have Windows XP Professional SP2 as OS. Nothing but headaches with SQL connnections using Visual Studio.NET & MDAC Components. (1) Continually getting System.Data.SqlClient.SqlException : Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not...
1
1215
by: Jim Swarr | last post by:
I have a rather annoying issue with VB.net 2005 and Splash Screens. If I configure a Splash Screen from the Application Property tab, it works just as expected when the application is installed on a Windows XP machine. However, when installed on a Windows 2000 machine, I get an unhandled null reference exception when the Splash Screen tries to close and bring up the main form. If you click continue on the unhandled exception dialog,...
0
1092
by: Manu | last post by:
Hi, To get the USERNAME of all process running in local/remote system I am using the WTSOpenServer and WTSEnumerateProcesses API's but when I invoke the WTSOpenServer in Windows 200 Professional it s returning 1722(The RPC server is unavailable.) error, but the same program is working fine in Windows 2000 Advance Sever and Windows 2003.
3
3569
by: Adam | last post by:
This is my first attempt at using the Terminal Services API, and I'm stumped. I can't get WTSOpenServer to work for the life of me (this is in VS2005, by the way). Specifically, the argument has me baffled. It's my understanding that it wants a LPWSTR (at least on this machine, where UNICODE is defined). My first attempt was: HANDLE hnd = WTSOpenServer("asdf"); Which yielded: error C2664: 'WTSOpenServerW' : cannot convert parameter...
0
9618
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
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
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
10101
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
7456
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
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();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.