Global Shared Memory Library für Windows

Anwendungen, Tools, Userlibs und anderes nützliches.
Benutzeravatar
Rings
Beiträge: 977
Registriert: 29.08.2004 08:48

Global Shared Memory Library für Windows

Beitrag von Rings »

Wenn du mal Speicher zwischen deinen verschiedenen Applikationen (Oder Spielen) tauschen willst (Zum Beispiel um Daten zu transferieren)
dann kommt diese Userlib sehr gelegen.
Mit Ihr kann man Speicher zwischen verschiedenen Processen tauschen

Die Library ist frei für die Benutzung in privaten oder kommerziellen Applikationen (Spielen)

Download hier

Habt spass mit diesem Geschenk von mir,

S.Rings im März 2005


Englisches Readfile:
--------------ReadmeFile, 1.th march 2005-------------------

Description: Userlib for Purebasic, tested version 3.93

Purpose: Share Blocks of Memory between different Processes (EXE's) and Threads (DLL's)

Copyright: 2004-2005 by Siegfried Rings

License: Free of use in any commercial or private application

Sourcecode: Available at xtra costs ,or just offer me something ;)

---------------------------------------------------------------
2 Commands are available, Normaly only 1 is needed.
The most important command is to allocate the global memory,
do this with the AllocateMemoryGlobal-Command:


Usage:

You define a Block of memory wuth this Command:


MemoryAddress.l =AllocateMemoryGlobal(Name.s,Size.l)


where

Name.s is a string with an unique Name for this Block
Size.l is the size to allocate in bytes.
MemoryAddress is the returnvalue from the function,
it is NULL if it fails, else it is a value address in Memory
Where you can Peek/Poke and CopyMemory .


The other Command (normaly not needed) is the FreeMemoryGlobal Command

Result=FreeMemoryGlobal(MemoryAddress.l)

---------------------------------------------------------------------

How to use the example:


To Test this library, you have to start 2 instances of the example file.
in the example file there were allocate 5 Blocks of shared memory.
You can edit the String (first mark a entry in the Listgadget),
that should been share with the Set command.
Too easy to describe.

----------------------------------------------------------------------
Why i wrote this lib ?
Yes, i have written several services (Native NT_services) in Purebasic (A userlib is also ready for this)
and i have to control and share Datas from a control-panel or Icontray Programm with them .
One way was using a file, but using Memory was a way faster then.


Have fun, Siegfried Rings, 1.3.2005
Rings hat geschrieben:ziert sich nich beim zitieren
traumatic
Beiträge: 478
Registriert: 27.11.2004 15:42

Re: Global Shared Memory Library für Windows

Beitrag von traumatic »

Danke! :D
glubschi90
Beiträge: 274
Registriert: 04.09.2004 01:43
Wohnort: Würzburg

Beitrag von glubschi90 »

Gute Arbeit, Rings! :allright:
Danke!

Das kann man oft und sehr gut gebrauchen!
PureBasic 4.30
Benutzeravatar
SoS
Beiträge: 340
Registriert: 29.08.2004 09:31
Kontaktdaten:

Beitrag von SoS »

:allright: sauber ;)

Und VIEL leicher anzuwenden als sich mit den API-Funktionen rumzuärgern.
Benutzeravatar
crossroads
Beiträge: 244
Registriert: 29.08.2004 05:41
Wohnort: Rhine Main Area

Beitrag von crossroads »

Ist wieder mal 'ne tolle Sache von Rings :allright:
Man soll die Tür aufmachen, bevor man durchgeht ...
Antworten