Ok, I've managed to make the rename box appear (since it wasn't working, I checked the Schema Documentation - it was "AllowEditText").
I've currently got this:
js code:
function OnWndWriterManageWindowsEvent_MessageNotification(objWnd, Message, wParam, lParam)
{
if (Message === 78) // WM_NOTIFY
{
var NMHDR = Interop.Allocate(52);
Interop.Call("kernel32", "RtlMoveMemory", NMHDR.DataPtr, lParam, 52);
if (NMHDR.ReadString(8) === -176) // LVN_ENDLABELEDITW
{
Debug.Trace("Renamed!");
}
}
}
But I'm assuming that the NMHDR structure doesn't actually return the actual number at position 8... how should I do it?