English
Regulars table & Café

GetEnvironmentStrings.

 


Description:

GetEnvironmentStrings supply a Zeiger on one aray with the Enviroment-Variables the current Prozesses back. The Enviroment-Variables are the shape ‚Variable=Wert’ gelistet and through Nullbytes voneinander separated. The block becomes through one doppeltes Nullbyte completed. The area must mach the Use with FreeEnvironmentStrings again released go..




Deklaration:

Def @GetEnvironmentStrings(0) !kernel32,GetEnvironmentStringsA




Parameter:

These function has no Parameter.



Return Value:

One Pointer (address) on The Enviroment-Variables one Prozesses.


Examples:

CompileMarkSeparation
Def @GetEnvironmentStrings(0) !"kernel32","GetEnvironmentStringsA"
DEF @FreeEnvironmentStrings(1) !"kernel32","FreeEnvironmentStringsA"
Declare INV#,INV_POINTER&,INV$,Zähler%,INV_BUF_Länge&
LET INV_BUF_Länge&=1024*16
DIM inv#,INV_BUF_Länge&
Clear INV#
LET INV_POINTER&=@GetEnvironmentStrings()
LET inv#=INV_POINTER&
Let Zähler%=0

WHILE @String$(INV#,Zähler%)<>""

    LET INV$=@String$(INV#,Zähler%)
    ADDSTRING INV$
    LET Zähler%=Zähler%+@LEN(INV$)+1

WEND

ADDSTRING ""
ADDSTRING ""
Let Zähler%=0

WHILE @String$(INV#,Zähler%)<>""

    LET INV$=@String$(INV#,Zähler%)
    LET Zähler%=Zähler%+@LEN(INV$)+1
    LET INV$=@SubStr$(INV$,1,"=")
    ADDSTRING INV$

WEND

@FreeEnvironmentStrings(INV_POINTER&)
Dispose inv#
@LISTBOX$("Liste aller Umgebungsvariablen des Prozesses:",pan>)

[keywords:027711e3d9]
Enviroment-Variables read to determine Pointer Zeiger lists list
[/keywords:027711e3d9]
 
04/30/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.484 Views

Untitledvor 0 min.
ByteAttack10/27/15

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie