| | |
Program security (When Launched)
![]() |
•
•
Join Date: Mar 2005
Posts: 36
Reputation:
Solved Threads: 1
I hope this makes sense... I made a program which requires authorization by username and password, once logged in it will allow you to load a program. My question is, is there a tutorial for the program being called to only open if it has been called by a certain program (Only a certain program can open it).
I was looking up google for tutorials and fstream, but I cannot find anything. Could someone please push me in the right direction?
Thanks in advance,
Rave
I was looking up google for tutorials and fstream, but I cannot find anything. Could someone please push me in the right direction?
Thanks in advance,
Rave
•
•
Join Date: Aug 2004
Posts: 19
Reputation:
Solved Threads: 0
You could also use a pseudorandom number calculated by the same means on both the client and server programs. You could pass this via an IPC mechanicsm. Not exactly 'secure', but would keep anybody from randomly executing.
dale
dale
•
•
Join Date: Mar 2005
Posts: 36
Reputation:
Solved Threads: 1
I have a idea that will work, once program A is open it will create a .bmp file with encrypted characters. The program B will search for this file and have the correct characters in it. If not it does not open.
However, I want to make it so when Program A is closed, the file is deleted (so program B wont run). How do I delete the bmp file after its been created?
However, I want to make it so when Program A is closed, the file is deleted (so program B wont run). How do I delete the bmp file after its been created?
from google
http://www.computing.net/programming...rum/12045.html
apparently the remove() function is what you are after.
www.cplusplus.com might have a reference for this function
http://www.computing.net/programming...rum/12045.html
C Syntax (Toggle Plain Text)
#include <stdio.h> if(remove("myfile.txt") == -1) fprintf(stderr,"Remove failed");
apparently the remove() function is what you are after.
www.cplusplus.com might have a reference for this function
http://sales.carina-e.com
no www
no nonsense
coming soon to a pc near you! :cool:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
Similar Threads
- News Story: Windows Live Messenger of Doom (Viruses, Spyware and other Nasties)
- One Level Up & Typo3 (Linux Servers and Apache)
- Another Program Launching mine (C++)
- Launching an application from a thread (C++)
- Suddenly my system is slooow... Only with CloneCD tho (Windows NT / 2000 / XP)
Other Threads in the C Forum
- Previous Thread: Trouble with pointers in card game.
- Next Thread: Windows programming task
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue mysql number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi






