<div dir="ltr"><div>Hi</div><div><br></div><div>I've just switched my local jextract from branch jdk22 to the panama branch to see the effect of some of the recent code merges in emails of last 2 weeks. The jextract in panama did not generate my Java bindings for all projects. <br></div><div><br></div><div>
Advapi32.h
is:</div><div> #include <shlobj_core.h></div><div><br></div><div>Extract command with jdk22 / panama branch:<br></div><div>
<div>jextract.bat --source -ladvapi32 -t advapi --output genxxx --include-struct
_SERVICE_TABLE_ENTRYW Advapi32.h<br></div></div><div><br></div><div>In older generated code for _SERVICE_TABLE_ENTRYW I see this definition using
LPSERVICE_MAIN_FUNCTIONW:</div><div><br></div><div> public static LPSERVICE_MAIN_FUNCTIONW lpServiceProc(MemorySegment segment, Arena scope) {<br> return LPSERVICE_MAIN_FUNCTIONW.ofAddress(lpServiceProc$get(segment), scope);<br> }</div><div><br></div><div>In the new
generated
code for _SERVICE_TABLE_ENTRYW I see this definition which has a cross over "W" to "A" for method LPSERVICE_MAIN_FUNCTIONA which does not look right: <br></div><div><br></div><div> public static LPSERVICE_MAIN_FUNCTIONA lpServiceName(MemorySegment segment, Arena scope) {<br> return LPSERVICE_MAIN_FUNCTIONA.ofAddress(lpServiceName$get(segment), scope);<br> }</div><div><br></div><div>
Ignore this message if this is expected.</div><div><br></div><div>Kind regards</div><div><br></div><div>Duncan<br></div></div>