Delphi-Kylix
  Home arrow Delphi-Kylix arrow Page 3 - The Client for an Internet Access Control ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

The Client for an Internet Access Control Application
By: David Web
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-09-29

    Table of Contents:
  • The Client for an Internet Access Control Application
  • Small and Main Window
  • Disable Mouse and Keyboard Access
  • Retrieving the Workstation Name

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The Client for an Internet Access Control Application - Disable Mouse and Keyboard Access


    (Page 3 of 4 )

    The next function is responsible for disabling mouse and keyboard access:


    //screenblock function

    function TForm1.FuncAvail(dllName, funcName: string; var p: pointer): boolean;

    var

    lib: THandle;

    begin

    result := false;

    p := nil;

    if LoadLibrary(PChar(dllName)) = 0 then exit;

    lib := GetModuleHandle(PChar(dllName)) ;

    if lib <> 0 then

    begin

    p := GetProcAddress(lib, PChar(funcName)) ;

    if p <> nil then Result := true;

    end;

    end;

    //***********end screenblock function

    The parse functions should be familiar to you by now. They are responsible for breaking up text that is sent by the server to the client, as demonstrated above. The code for the function is listed below:


    //*******string functions

    function ParseString(s : string; var Token1,Token2,Token3: string) :

    boolean;

    var

    P1,P2 : integer;

    begin

    P1 := Pos(':',s);

    P2 := Pos('@',s);

    //Test if both delimiters are present, in the right order and

    //at least 1 char apart

    if ((P1 > 0) and (P2 > 0) and (P2 > P1) and (Abs(P2-P1) > 1))

    then begin

    Token1 := Copy(s,1,P1-1);

    Token2 := Copy(s,P1+1,P2-P1-1);

    Token3 := Copy(s,P2+1,Length(s)-P2);

    Result := True; //valid string

    end

    else Result := False; //invalid string

    end;

    //*****end string

    More Delphi-Kylix Articles
    More By David Web


     

    DELPHI-KYLIX ARTICLES

    - Loading an XML Document into the DOM
    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek