[fpc-pascal] Atom like feature in FreePascal
MAGENTA LTD
info at magenta.gr
Wed Mar 22 19:06:02 CET 2006
I'm interest on an OS independed (or at least Linux and MacOS), Windows
ATOM like* feature, supported by FreePascal. Most similar feature found
is environment variables which are accessed by GetEnvironmentVariable()
function. There is Get function but could not find any Create or Set.
Besides documentation, already checked osutilsh.inc file in which
GetEnvironmentVariable() is declared. I think if there was any related
functions would be stored in this same interface file, right?
What I need to do:
I need to set a system wide flag so to determine if specific tasks are
executed in current system login session. If user log off or restart,
then I could know this by not finding flags in memory. Flags should not
be visible to any other program (enumeration-proof), unless it is called
by it's name.
Any directions would be most appreciated.
* Windows atoms are like system variables which can be used as flags or
as counters. This is supported by a group of Windows API functions, such
as "GlodalAddAtom, GlobalFindAtom, GlobalDeleteAtom". Atoms cannot be
enumerated or accessed if caller do not know it's specific name. So, it
a kind of safe way to pass flags or information between programs and
instances of your apps.
Regards, Panagiotis
-------------------
OS: Linux, Knoppel, Knoppix localized distribution
IDE: Lazarus (revision 8985)
FreePascal revision: 3010
More information about the fpc-pascal
mailing list