Results 1 to 6 of 6

Thread: Application Security

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Application Security

    I have one EXE file i want that it should only run by one specific appliation like when APP2 try to run APP1 only then it run. i don't want to use command line argument string is there anything else?

  2. #2
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Application Security

    In your Form_load event you would have to do a few things:

    Detect if App1 is running by checking the task manager (process list)

    or/and

    Use the FindWindow API to detect if App1 is running
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Re: Application Security

    What is Conditional Compilation? can i use that?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    120

    Re: Application Security

    How can i find the name and path of the calling EXE

  5. #5
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: Application Security

    i dont know of a way to detect the calling app in windows, but if you write a dos batch file that runs your app, and have the 2nd exe call that batch, you can get the caller using %0.

    if you want to know if app one is already running, use App.PrevInstance - true if already running, false if not.

  6. #6
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    372

    Re: Application Security

    oh, although you said you didn't want command line arguments, it would work to have app2 pass its PID as an argument to App1, then in app1, check the processes name associated with that PID, and if it matches what you want, continue... that way, nobosy could spoof it. also might try passing a key via the clipboard or a temp file, or a registry key.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width