Solved

OpenEvent Failed in Win2000 Terminal service client

Posted on 2002-03-08
2
291 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

863 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

22 Experts available now in Live!

Get 1:1 Help Now