简体   繁体   中英

LVM_SORTITEMS sort function

LVM_SORTITEMS需要一个指向应用程序定义的比较函数的指针,但我想知道而不是我可以找到函数资源管理器使用的那样来代替吗?

The function is application specific and Explorer provides a pointer to its own code. You cannot reuse it and even analyze it in any better way than hooking, breaking with debugger and studying disassembly.

A typical function would take item specific value, which for example, could be a pointer to some internal structure, and then compare the values from structures of the two items in question. You clicked on "Size" column, then the function would look up size for item #1 and size for item #2 and return the comparison result.

The fact that it's related to internal structures makes you unable to reuse that function the way you supposedly wanted to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM