Retrieves a character string in a format external to PC Soft (character string that is the result of a Windows API for example).
// The "MyDLL32.dll" DLL returns an address where an ASCIIZ string is stored
LoadDLL("MyDLL32.dll")
nAddrASCIIZString is int = CallDLL32("MyDLL32.dll", "ReturnStringAddress")
sStringContent is string = StringRetrieve(nAddrASCIIZString, srASCIIZAddress)
FreeDLL("MyDLL32.dll")
Info(sStringContent)
Syntax
<Result> = StringRetrieve(<Parameter> , <Option>)
<Result>: Character string
Resulting string in PC Soft format.
<Parameter>: System integer
Address of the character string to retrieve.
<Option>: Integer constant
Format of the string to retrieve. | |
srASCIIZAddress | <Parameter> must be an integer that contains the address of an ASCIIZ string. |
srUNICODEAddress | <Parameter> must be an integer that contains the address of a UNICODE string. |
Related Examples:
|
Unit examples (WINDEV): Strings with APIs
[ + ] Using strings with APIs. The following functions are used: - StringRetrieve - Transfer
|