Hi Customer,
For the 1st question, as far as I know, it is not possible to control SMB 2.0 cache behavior for application only. Based on my research, You can create registry keys below to control the cache lifetime.
Under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters:
FileInfoCacheLifetime
FileNotFoundCacheLifetime
DirectoryCacheLifetime
They are all REG_DWORD type in seconds.
For your reference, you can refer to the link here:
http://blogs.msdn.com/winsdk/archive/2009/07/10/file-exists-access-getfileattributes-findfirstfile-findnextfile-stat-behavior-over-smb-2-0.aspx
For the remaining questions, as they are related to development, I would like to suggest that you initial a new thread in one of the MSDN forum for better and accurate answer to the question. The community members and support professionals there are more familiar with coding and can help you in a more efficient way.
MSDN forum
http://social.msdn.microsoft.com/Forums/en-US/categories/
This posting is provided "AS IS" with no warranties, and confers no rights.