I have been trying to build a screensaver that will connect to a database
and display specific data depending on the user that is logged in. I have
managed to get a simple data access screensaver to work, however, i can't
get the application to work with some prebuilt assemblies i have. Also,
when the screensaver is running under the windows screensaver settings it
also will not access the config file.
Any pointers would be greatly accepted
Simon 4 5503
Simon,
A screensaver is nothing more than an executable with an scr extension.
You shouldn't have any problems accessing the things you want to access.
What are the errors that you are getting, or is it just not working?
If you want, compare your code to the sample screensaver on
gotdotnet.com, located at (watch for line wrap): http://www.gotdotnet.com/community/u...2-c07e5d3f68ed
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Simon Mercer" <si**********@k ynetix.com> wrote in message
news:eK******** *****@TK2MSFTNG P09.phx.gbl... I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I have managed to get a simple data access screensaver to work, however, i can't get the application to work with some prebuilt assemblies i have. Also, when the screensaver is running under the windows screensaver settings it also will not access the config file.
Any pointers would be greatly accepted
Simon
Well when the application is run under vs.net it works correctly as in you
can obtain keys from the ConfiurationSet tings.AppSettin gs. When you rename
it to .scr (as well as renaming appname.scr.con fig) the application will not
retrieve settings from the file.
The example screensaver at the link doesn't use config files and also
compiles into a single executable, where as i have dll's i am trying to link
to.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:Oo******** ******@TK2MSFTN GP15.phx.gbl... Simon,
A screensaver is nothing more than an executable with an scr
extension. You shouldn't have any problems accessing the things you want to access.
What are the errors that you are getting, or is it just not working?
If you want, compare your code to the sample screensaver on gotdotnet.com, located at (watch for line wrap):
http://www.gotdotnet.com/community/u...2-c07e5d3f68ed Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Simon Mercer" <si**********@k ynetix.com> wrote in message news:eK******** *****@TK2MSFTNG P09.phx.gbl...I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I
have managed to get a simple data access screensaver to work, however, i
can't get the application to work with some prebuilt assemblies i have. Also, when the screensaver is running under the windows screensaver settings
it also will not access the config file.
Any pointers would be greatly accepted
Simon
I haven't worked with screen saver in .NET yet, but you might want to make
sure that your config file is in the directory where Windows executes the
screen saver from, it could be that the executing path for your app is the
windows or system32 directory. Check the value of
Environment.Cur rentDirectory when it's executing under windows screen saver
settings.
Just a thought...
"Simon Mercer" <si**********@k ynetix.com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l... Well when the application is run under vs.net it works correctly as in you can obtain keys from the ConfiurationSet tings.AppSettin gs. When you rename it to .scr (as well as renaming appname.scr.con fig) the application will not retrieve settings from the file.
The example screensaver at the link doesn't use config files and also compiles into a single executable, where as i have dll's i am trying to link to.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in message news:Oo******** ******@TK2MSFTN GP15.phx.gbl... Simon,
A screensaver is nothing more than an executable with an scr extension. You shouldn't have any problems accessing the things you want to access.
What are the errors that you are getting, or is it just not working?
If you want, compare your code to the sample screensaver on gotdotnet.com, located at (watch for line wrap):
http://www.gotdotnet.com/community/u...2-c07e5d3f68ed Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Simon Mercer" <si**********@k ynetix.com> wrote in message news:eK******** *****@TK2MSFTNG P09.phx.gbl... >I have been trying to build a screensaver that will connect to a >database > and display specific data depending on the user that is logged in. I have > managed to get a simple data access screensaver to work, however, i can't > get the application to work with some prebuilt assemblies i have. > Also, > when the screensaver is running under the windows screensaver settings it > also will not access the config file. > > Any pointers would be greatly accepted > > Simon > >
The security context in which the screensaver runs is not the interactive
users context.
Screensaver's have their own secured desktop and they run in the security
context of SYSTEM (XP) or LOCAL SERVICE (W2K3) local accounts, that means
you have to hardcode all file path's in code and make sure these accounts
are granted access rights to the DB and config file.
BTW. It's realy a bad idea to run user programs in the security context of a
screensaver.
Willy.
"Simon Mercer" <si**********@k ynetix.com> wrote in message
news:eK******** *****@TK2MSFTNG P09.phx.gbl... I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I have managed to get a simple data access screensaver to work, however, i can't get the application to work with some prebuilt assemblies i have. Also, when the screensaver is running under the windows screensaver settings it also will not access the config file.
Any pointers would be greatly accepted
Simon
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: klappnase |
last post by:
Hello everyone,
does anyone know a way to stop the screensaver under linux from
starting up while a certain process is running?
I need this because I experience a memory leak while recording
wav-files every time the screensaver starts.
It is a Tkinter application, btw.
Any help would be very appreciated.
Thanks
|
by: Christopher Burr |
last post by:
I'm trying to set the user's screensaver in the .NET world...
In Win32 I could use a combination of setting the screen saver name via the
registry and then setting the time and active status using
SystemParametersInfo. And the system would use the new settings.
Now that I'm trying to do it in .NET, I found that SystemParametersInfo does
not exist. I also found I can detect when the screensaver settings have
been changed, but what I...
|
by: Luke |
last post by:
I am trying to capture an event when the screensaver starts. I have code
working on Windows XP etc when the Password/Welcome Screen is enabled
. Using the Fast User Switching Notifications.
However I am unable to detect the screensaver starting when the screensaver
password option is disabled. When using the WndProc Overrides I am unable to
capture the screensaver event unless the application is active .
Thank you in advance for any...
|
by: DanielB |
last post by:
Does anyone know what the command line argumentto launch a
screensaver's options/configuration dialog is on Windows XP Pro?
From most of the example source code I can find on the web, it would
seem to be '/c' but that does not seem to work for the screensaver I
have written. I've tested my code and if '/c' is the first argument
then the options dialog is launched but Windows XP does not seem to be
supplying the '/c' argument when I...
|
by: Paul Smith |
last post by:
I have been given an unusual task to create a Windows Service to do something
periodically to make the screensaver timer reset. We have a general policy
of locking computers automatically after 10 minutes of inactivity. This
windows service would be used on some machines to prevent the lock from
occurring every 10 minutes.
I have tried to reposition the mouse pointer with the Cursor class in a
service, but it does not work -- always...
| |
by: Paul Smith |
last post by:
I have been given an unusual task to create a Windows Service to do something
periodically to make the screensaver timer reset. We have a general policy
of locking computers automatically after 10 minutes of inactivity. This
windows service would be used on some machines to prevent the lock from
occurring every 10 minutes.
I have tried to reposition the mouse pointer with the Cursor class in a
service, but it does not work -- always...
|
by: DanielB |
last post by:
Does anyone know what the command line argumentto launch a
screensaver's options/configuration dialog is on Windows XP Pro?
From most of the example source code I can find on the web, it would
seem to be '/c' but that does not seem to work for the screensaver I
have written. I've tested my code and if '/c' is the first argument
then the options dialog is launched but Windows XP does not seem to be
supplying the '/c' argument when I...
|
by: Ron Nanko |
last post by:
Hi,
I'm trying to setup a screensaver via a C# application. What I
currently do is this:
unsafe public static extern short SystemParametersInfo (int uiAction,
int uiParam, int* pvParam, int fWinIni);
....
try
|
by: VMI |
last post by:
How difficult is it to develop a screensaver in C#? The screensaver would be
composed of several images and each image would be displayed on the screen
for a few seconds. The only difficult part would be that there should a
smooth transition between images.
Thanks.
|
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...
|
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,...
| |
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |