TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
prabhat khadka
NA
14
21.7k
windows service help
Dec 19 2007 7:00 AM
I have developed a windows service.To run my service I must check the box containing "Allow System to interact with Desktop".Is it possible to check that box through programming.
Well I got this code..
RegistryKey ckey = Registry.LocalMachine.CreateSubKey(@"SYSTEM\CurrentControlSet\Services\"+ServiceName);
if (ckey != null)
if (ckey.GetValue("Type") != null)
ckey.SetValue("Type", ((int)ckey.GetValue("Type")|256));
The box is checked but not doing the desired task.But if I manually check that box again it does.And,Where should I put above method?
Thank u.
Reply
Answers (
0
)
'System.Web.HttpRequest' does not contain a definition for 'Request'
NP71 Source Code