English
Online-Documentation

FormatMessageA, KERNEL32 API

 

Michael
Wodrich
FormatMessageA supply a Error Code (number) a Description the Fehlers (String) or format a such Meldungsdefinition new.

Parameter:
P:L1- ? Happen? for manner the Erzeugung the Rückgabestrings. ? Happen? can with | add go.
? Happen? for Parameter 1:
FlagDescription
$100- (FORMAT_MESSAGE_ALLOCATE_BUFFER)
P:L5 gives The minimale Size the Buffers for Stringrückgabe on. the system accounts The erforderliche Size self and the memory must later with LINK:[LocalFree] released go.
$200- (FORMAT_MESSAGE_IGNORE_INSERTS)
Placeholder inside the Rückgabestrings go unchanged for a later edit transfer. P:L7 becomes ignoring.
$400- (FORMAT_MESSAGE_FROM_STRING)
P:L2 is the address of/ one nullterminierten Meldungsdefinition. this Flag can't with $800 and $1000 uses go.
$800- (FORMAT_MESSAGE_FROM_HMODULE)
P:L2 is the lever one Moduls (DLL). can't with $400 combined go.
$1000- (FORMAT_MESSAGE_FROM_SYSTEM)
search The Systemmeldungstabellen to the Rückgabestring. can't with $400 combined go.
$2000- (FORMAT_MESSAGE_ARGUMENT_ARRAY)
P:L7 is the address one Arrays with Argumenten for Formatierung.

the downstairs byte this ? Happen? gives moreover The treatment the Zeilenumbrüche on:
FlagDescription
$FF- Zeilenumbrüche in the Rückgabestring go in the rule ignoring.
$1 To $FE- Maximale amount of letters until Zeilenumruch.
$0- Zeilenumbrüche in the Rückgabestring go übernommen.
P:L2- gives on, where the Rückgabestring sought go should.
-- If in P:L1 $800 indicated watts, standing here the lever one Moduls (DLL), the whom Rückgabestring supply.
-- If in P:L1 $400 indicated watts, standing here The address one unformatierten Rückgabestrings this function (Meldungsdefinition). it can then with this function moreover format go.
-- In all others Make becomes this Parameter ignoring.
P:L3- Identifierer of/ one Message, How it z.B. GetLastError supply. If in P:L1 $400 indicated watts, becomes this Parameter ignoring.
P:L4- Identifier of/ one Language for Rückgabestring. 0 for actually Language. this Parameter becomes ignoring, if in P:L1 $400 indicated watts.
P:L5- If in P:L1 $2000 indicated watts, standing here a LongInt-Variable or 4 byte large Memory-Variable, The The Adesse the Rückgabestrings aufnimmt. otherwise a enough dimensionierte Memory-Variable, The whom Rückgabestring aufnimmt.
P:L6- If in P:L1 $2000 indicated watts, standing here The minimale Size the Bereichs from P:L5 as LongInt. otherwise standing here The Size of P:L5 in Bytes (ANSI) or letters (Unicode).
P:L7- Parameter for Formatierung. If P:L1 $2000 contains, standing here a Memory-Variable with the for possible available Placeholder einzusetzenden Strings. otherwise is this Parameter The address of/ one va_list structure.

Return Value:
0 with Error, otherwise The Number of Bytes (ANSI) or characters (Unicode), The zurückgeliefert get.
 
Programmieren, das spannendste Detektivspiel der Welt.
11/18/05  
 



Note / Question or Comment to the Help--Topic


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.794 Views

Untitledvor 0 min.
rquindt03/19/18
Andreas Koch03/12/12

Themeninformationen

this Topic has 1 subscriber:

Michael Wodrich (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