Jeremy White wrote:

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.



I didn't test it but AFAIK it should work.

--
Piotr Kaluski

"It is the commitment of the individuals to excellence,
their mastery of the tools of their crafts, and their
ability to work together that makes the product, not rules."
("Testing Computer Software" by Cem Kaner, Jack Falk, Hung Quoc Nguyen)



Reply via email to