Sponsored Content
Full Discussion: TSR programs
Top Forums Programming TSR programs Post 16105 by rajashekaran on Monday 25th of February 2002 11:30:35 PM
Old 02-26-2002
TSR programs

hi
I want to write a tsr routine which use to replace the screen saver
program, is it possible in unix? how to write a tsr in UNIX?
what is address of screen saver program so that i can replace
my routine in that address.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where did my programs go?

I notice that (Mandrake) Linux and Windows do not seem to operate alike in terms of installing third party software. Windows, on one hand, creates icons and adds items to the Start Menu, with the help of the InstallShield--or equivalent, of course, but Linux, on the other hand, seems to care... (3 Replies)
Discussion started by: helvetica
3 Replies

2. Solaris

Solaris programs

Greetings, I have installed the Solaris 10 in my computer, this system is really interesting, and where I can find more free programs for download to install? Anyone knows? (2 Replies)
Discussion started by: FBorges22
2 Replies

3. Shell Programming and Scripting

shell programs

how to write pipe for finding out the login names and login time of the users whose login name begins with p. (1 Reply)
Discussion started by: rameshparsa
1 Replies

4. UNIX for Dummies Questions & Answers

Installing Programs

Hello, I have a simple question. How do make it so i can lauch a program from the shell. For instance I want to install firefox 2 and I wanna launch it with ff2 in the terminal, so i tried this to my .bashrc file: alias ff2='/path/./firefox' and its not working as I would hope. anywho,... (2 Replies)
Discussion started by: SeamusHC
2 Replies

5. UNIX for Dummies Questions & Answers

help with calling programs

Hi. I have a problem in running a program in linux system. This program (damaver.l86) is in the path /home/shenk/damaver/, and it needs to call another program (supcomb.l86) in another path /home/shenk/supcomb/. I tried to modified the .bash_profile, but it didn't work. The error message is always... (1 Reply)
Discussion started by: shenk
1 Replies

6. UNIX for Dummies Questions & Answers

Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?

Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies

7. Shell Programming and Scripting

Installation of programs

I have installed a program and put the stuff on /usr/local/ However when I run a script it gives an error GMT Fatal Error: /home/chrisd/Dimech/GMT4.5.2/share/PS_font_info.d: No such file or directory (1 Reply)
Discussion started by: kristinu
1 Replies

8. Shell Programming and Scripting

Scripting Programs

Hi does anyone know some good shell scripting programs, like visual studio for C++/C#? (8 Replies)
Discussion started by: Mack1982
8 Replies

9. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies
XHPSSChangeNotify(3X)													     XHPSSChangeNotify(3X)

NAME
XHPSSChangeNotify - Allows applications to receive notification of screen saver state changes. SYNOPSIS
#include <X11/XHPlib.h> int XHPSSChangeNotify (display, ssHandle, flags) Display *display; Atom *ssHandle; int flags; ARGUMENTS
display Specifies the connection to the X server. ssHandle Specifies a pointer to an atom, into which the X server will return a unique identifying screen saver id. flags Specifies the bit mask that indicates the type of notifications the application wants to receive. The first bit (bit 0) determines screen saver 'on' and 'off' states. The second bit (bit 1) indicates the 'draw' and 'cycle' notification. DESCRIPTION
These requests are part of an HP-proprietary extension to X. These requests allow one or more X clients to react to screen saver state changes, such as locking the screen when the screen blanks or drawing patterns on the screen. To receive 'on' and 'off' messages, the application only needs to call XHPSSChangeNotify(). To also receive 'draw' and 'cycle' messages, the application needs to call XSetScreenSaver() as well as XHPSSChangeNotify(). To enable the screen saver, applications must first call XSetScreenSaver() and set the prefer_blanking to DontPreferBlanking. The X server will not generate 'draw' and 'cycle' notification when blanking is turned on. The allow_exposures flag must be set to AllowExposures. This ensures that proper notification will be sent out when it is safe to do drawing. This can also be done with "xset s noblank s expose". To begin receiving information on screen saver state changes, applications must use the XHPSSChangeNotify() function. Depending on how the flags have been set, the screen saver program can receive notification of the following event_types: XHP_SCREEN_SAVER_ON: The screen saver timeout has initially expired. This is typically visually indicated by the screen blanking. XHP_SCREEN_SAVER_OFF: The screen saver has been reset, due to user input or mouse movement. XHP_SCREEN_SAVER_DRAW: The screen saver program can now draw into the screen saver window; the window id is supplied as part of the notification. XHP_SCREEN_SAVER_CYCLE: The cycle timeout has expired; this allows a screen saver program to modify (or animate) what it is displaying in the screen saver window. Caveat: Even if you enable bit 1, thus requesting 'draw' and 'cycle' notification, you will only receive these *if* you had disabled blanking, using the calls described earlier! Once you have registered interest in screen saver notification, you will receive X events whose 'type' is set to 'ClientMessage', and whose message type is the atom passed back by XHPSSChangeNotify(). For instance, the following event loop would detect and dispatch screen saver events: XEvent event; for (;;) { XNextEvent (display &event); if ((event.type == ClientMessage) && (event.xclient.message_type == ssHandle)) { /* add code to dispatch screen saver event */ } } In the case of the XHP_SCREEN_SAVER_DRAW notification, you will also receive the window id for the screen saver window. This window id is specified within the event.xclient.data.l[1] field and the event type is specified within event.xclient.data.l[0] field: XClientMesssageEvent * message = (XClientMessageEvent *) &event; event_type = message->data.l[0]; window = message->data.l[1]; EXAMPLES
This is a sequence of notification event_types a screen saver application might see: Bit 1 off, or blanking enabled: ------------------------------- XHP_SCREEN_SAVER_ON (When screen saver timeout expires) XHP_SCREEN_SAVER_OFF (When input occurs or mouse is moved) Bit 1 on, and blanking disabled: -------------------------------- XHP_SCREEN_SAVER_ON (When screen saver timeout expires) XHP_SCREEN_SAVER_DRAW (When it is safe to draw in the specified window id) XHP_SCREEN_SAVER_CYCLE (When screen saver cycle timeout expires) . . . XHP_SCREEN_SAVER_CYCLE (When screen saver cycle timeout expires) XHP_SCREEN_SAVER_OFF (When input occurs or mouse is moved) In the case that there are more than one screen attached to the X server, applications will receive screen saver events for each screen, even screens that are not visible. Care should be taken to avoid rendering to a window using the wrong screen. To determine the screen, use the following: XGetWindowAttributes(display, event, window, &attr); screenNum = XScreenNumberOfScreen(attr.screen); CAUTION: An X error handler should be registered to catch attempts to draw to a non-existent window. The screen saver window is a special window that is created and destroyed by the X Server. It is possible, in the case that a short timeout is defined, that the client may issue draw requests to a window that has been destroyed before it completes all of its requests. If an error handler is not supplied, the application will most likely terminate. RETURN VALUE
This function returns 0 upon successful completion, -1 when the X Server is too old to support Screen Saver calls and 1 when too many screen saver clients have already registered. There can be a maximum of 10 registered screen saver clients. FILES
none ORIGIN
Hewlett-Packard Company SEE ALSO
XSetScreenSaver(3x) xset(1) X Version 11 Release 5 XHPSSChangeNotify(3X)
All times are GMT -4. The time now is 02:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy