flat assembler
Message board for the users of flat assembler.

Index > Windows > Question on Directory functions

Author
Thread Post new topic Reply to topic
clamicun



Joined: 04 Dec 2013
Posts: 77
Location: Muenster NRW Germany
clamicun
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.
Thank you.
Post 31 Jul 2014, 16:28
View user's profile Send private message Reply with quote
einar



Joined: 08 Feb 2014
Posts: 4
einar
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:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb774737%28v=vs.85%29.aspx
To sort listview rows you send message LVM_SORTITEMS
http://msdn.microsoft.com/en-us/library/windows/desktop/bb761227%28v=vs.85%29.aspx
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:
http://win32assembly.programminghorizon.com/tut31.html

sorry for my english
Post 31 Jul 2014, 18:55
View user's profile Send private message Reply with quote
clamicun



Joined: 04 Dec 2013
Posts: 77
Location: Muenster NRW Germany
clamicun
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 !
clamicun
Post 01 Aug 2014, 15:03
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.