TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: jari laaksonen
from: Gerard Gerritsen
date: 1996-03-18 10:11:06
subject: Program to query/set dynamic drag

Hello jari!

Friday March 15 1996, jari laaksonen writes to All:

 jl> /* public domain code to set dynamic drag on Warp with fixpak 17
 jl>  *
 jl>  * Jari Laaksonen, 15 Mar 1996 (email: jla{at}to.icl.fi)


Here is a simple Virtual Pascal port

program SetDynamicDrag;
{ public domain code to set dynamic drag on Warp with fixpak 17
{
{ Jari Laaksonen, 15 Mar 1996 (email: jla{at}to.icl.fi)
{
{ Quick and Dirty port to Virtual Pascal EEP4 by Gerard Gerritsen
{                                     ( email: 1000521{at}et.fnt.hvu.nl )
{
{ Usage DynDrag [Value]
{    - Sets dynamic drag on/off accoridng to the parameter,
{      shows the current value if no parameter given.
}

uses use32,os2pmapi,os2def;

{$DYNAMIC SYSTEM}
{$L VPRTL.LIB}

const SV_DYNAMICDRAG=99;

var
TempString:string[5];
counter:Byte;

begin
if ParamCount1 then begin
                      if WinQuerySysValue(HWND_DESKTOP,SV_DYNAMICDRAG)0
                        then Writeln('Dynamic Drag is ON')
                        else Writeln('Dynamic Drag is OFF'); 
                      exit;
                      end;

 TempString:=Paramstr(1);
 For counter:=1 to SizeOf(TempString)
  do TempString[counter]:=UpCase(TempString[Counter]);

IF TempString='ON' then WinSetSYsValue(HWND_DESKTOP, SV_DYNAMICDRAG,1)
                      else WinSetSysValue(HWND_DESKTOP, SV_DYNAMICDRAG,0);

end.

==> Gerard/2   - member of team os/2 -  1000521{at}ibk.fnt.hvu.nl

--- Fmail/2 1.02 Registered
* Origin: Yet another forgotten area! (2:283/203.18)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 283/203 2 512 280/801 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.