//刷新资源管理器
HWND hCurWnd = NULL;
TCHAR szClassName[MAX_PATH] = {0};
hCurWnd = ::GetTopWindow(NULL);
while(IsWindow(hCurWnd))
{
GetClassName(hCurWnd, szClassName, MAX_PATH);
if( _tcscmp( szClassName, _T("CabinetWClass") ) == 0 || _tcscmp(szClassName, _T("ExploreWClass") )== 0 )
{
::PostMessage(hCurWnd, WM_COMMAND, 41504, 0);
}
hCurWnd = ::GetNextWindow(hCurWnd, GW_HWNDNEXT);
continue;
}