Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi string in unicode konvertieren und an Api-Funktion übergeben (https://www.delphipraxis.net/9729-string-unicode-konvertieren-und-api-funktion-uebergeben.html)

steppo 2. Okt 2003 15:21


string in unicode konvertieren und an Api-Funktion übergeben
 
Mein quellcode sieht nun so aus.

Delphi-Quellcode:
const
  Parameter: array [0..4] of PWChar = ('Peter-Pan', 'Hans-Klaus',
    'OU=Heinz-DE,DC=Petra,DC=Karl,DC=net', 'Anton.Karl-Verena',
    'Claudia');


Delphi-Quellcode:
function NetJoinDomain(const lpServer: PWChar; const lpDomain:
  PWChar; const lpAccountOU: PWChar; const lpAccount: PWChar; const lpPassword:
  PWChar; const fJoinOptions: DWord): NET_API_STATUS; stdcall; external
'netapi32.dll';
Delphi-Quellcode:
function bla
Api_Meldung := NetJoinDomain(UebergabeParam[0], UebergabeParam[1],
    UebergabeParam[2], UebergabeParam[3], UebergabeParam[4], 0 + 1);
Api_Meldung ist vom Typ integer.

Result der Api-Funktion ist immer noch:
Fehlernummer/Fehlermeldung/Name
"1780 / A null reference pointer was passed to the stub./ RPC_X_NULL_REF_POINTER

Luckie 2. Okt 2003 15:40

Re: string in unicode konvertieren und an Api-Funktion überg
 
Was soll denn das jetzt? hast du dich verklickt? Du hast doch schon ein Topic deswegen laufen. Ich mache mal zu.

Daniel 2. Okt 2003 15:43

Re: string in unicode konvertieren und an Api-Funktion überg
 
Hallo Steppo,

ich denke, daß dieser Beitrag eigentlich in Deinen anderen Thread gehören sollte:
http://www.delphipraxis.net/internal...ct.php?t=10899


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz