Solved

OpenEvent Failed in Win2000 Terminal service client

Posted on 2002-03-08
2
286 Views
Last Modified: 2013-12-03
Hello all,

In windows 2000 server system, I am creating an event in a Service application and I am opening same event in another Win32 application by calling OpenEvent Function. This is working fine in all win2000 servers but if I logged on to that system using terminal service client from another system, then the OpenEvent function fails with return value 2 ( file open error ). I tried all possibilites with passing different values to CreateEvent and OpenEvent functions but OpenEvent in another application always fails.

Please Help to solve this problem.

Nagaraj
0
Comment
Question by:Nagarajhr
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 6850294
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/synchro_5myc.asp - it states:

"Terminal Services: The name can have a "Global\" or "Local\" prefix to explicitly open an object in the global or session name space. The remainder of the name can contain any character except the backslash character (\)."
0
 

Author Comment

by:Nagarajhr
ID: 6852288
Thank you for your suggestion.

Nagaraj
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now