For saving a file all you need to be doing is Plain C method of creating a file will do

for searching you need to be using the FindFirstFile API and it will return you WIN32_FIND_DATA through which you can get the type of object found (Folder File) and browse the folder.