I made a mistake when specifying an extension to be loaded, because I didn't escape the backslashes nor used r"...".
>>> print(loadExt("C:\Windows\Microsoft.NET\Framework64\v2.0.50727\sos.dll"))
59323328
loadExt() returned a handle, although it is clear at this point that the DLL cannot be loaded, because it doesn't exist.
I would appreciate that an exception happens in the line of loadExt() and not at a later time when calling callExt():
>>> callExt(59323328, "!dumpheap -stat", "")
The call to LoadLibrary(C:\Windows\Microsoft.NET\Framework64\2.0.50727\sos.dll) failed
Win32 error 0n126
"The module could not be found."
Comments: ** Comment from web user: kernelnet **
>>> print(loadExt("C:\Windows\Microsoft.NET\Framework64\v2.0.50727\sos.dll"))
59323328
loadExt() returned a handle, although it is clear at this point that the DLL cannot be loaded, because it doesn't exist.
I would appreciate that an exception happens in the line of loadExt() and not at a later time when calling callExt():
>>> callExt(59323328, "!dumpheap -stat", "")
The call to LoadLibrary(C:\Windows\Microsoft.NET\Framework64\2.0.50727\sos.dll) failed
Win32 error 0n126
"The module could not be found."
Comments: ** Comment from web user: kernelnet **
confirmed