And finally, to make function work with windows owned by other process:


void
GetItem(handle,item, subitem=0)
    HWND handle
    int item
    int subitem
ALIAS:
    Win32::GUI::ListView::ItemInfo = 1
PREINIT:
    LV_ITEM lv_item;
    char pszText[1024];
PPCODE:
->    int thisproc = GetCurrentProcessId();
->    int calledproc = 0;
->    GetWindowThreadProcessId( handle, &calledproc );

Imagine this situation. A list view is created in a different thread from the 'main' thead. The main thread then calls GetItem for the listview that was created in the other thread. Would this still work? I guess what I'm trying to say is that if we do make all Win32::GUI function calls work across processes, they should also work across all threads within the same process that is running Win32::GUI.

Cheers,

jez.



Reply via email to