Message board for the users of flat assembler.
> Windows > Question on Directory functions
clamicun 31 Jul 2014, 16:28
I find various functions which deal with the directory.
CreateDirectory, GetCurrentDirectory, RemoveDirectory, SetCurrentDirectory ...
On my computer I can define how a directory is displayed.
Sort by name date type size ...
Is there an API function to do this ?
I could check 100 dlls in the net, but maybe someone knows from experience.
|31 Jul 2014, 16:28||
einar 31 Jul 2014, 18:55
I'll try to answer your question. I don't know if there is such function that will sort folders e.g. in alphabetical order.
But Windows Explorer(My Computer) uses listview control:
To sort listview rows you send message LVM_SORTITEMS
to it by SendMessage function. One of its params is address of CompareFunc which will determine how items are sorted. But I forgot many things about this issue. So read carefully links and check that one below:
sorry for my english
|31 Jul 2014, 18:55||
clamicun 01 Aug 2014, 15:03
Thank you einar,
I check this out.
That masm example is exactely what I wanted.
I'll "translate" it into FASM.
Your english is ok !
|01 Aug 2014, 15:03||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.