Dieser "komische" Parameter ist vermuitlich das "implizite" SELF im Delphi.
Delphi-Quellcode:
type
ICientContextHolder = interface(IInterface)
['{00000000-0000-0000-0000-000000001112}']
function GetSerialNumber: LPWSTR; stdcall;
function GetLicencePlate: LPWSTR; stdcall;
end;
TClientContextHolder = class(TInterfacedObject, ICientContextHolder)
private
FVin: LPWSTR;
FVinKnown: BOOL;
public
constructor Create;
function GetSerialNumber: LPWSTR; stdcall;
function GetLicencePlate: LPWSTR; stdcall;
[..]
end;
Wie ist das mit dem Rückgabewert deiner Implmentationen?
Also ich meine vorallem die Speicherverwaltung des PWideChar, damit das auch lange genug "nach" dem Aufruf der Methoden immernoch "lebt".

Zitat von
Microsoft:
0xE0434F4D (-532459699) is a generic
COM exception. This is caused by a failure in the managed patch wrapper.
Also z.B. bei einer falschen Methoden-Signatur.
Ein Therapeut entspricht 1024 Gigapeut.