Is the WinInet function FindFirstUrlCacheGroup() working in .Net Compact Framework?
I'm trying to delete some cache groups using the following C++ code. FindFirstUrlCacheGroup doesn't seem to return anything. groupId is still equal to 0 and I get an infinite loup in while(1).

The code works perfectly in PC.

    // Delete the groups first.
    // Groups may not always exist on the system.
    // For more information, visit the following Microsoft Web site:
    // http://msdn2.microsoft.com/en-us/library/ms909365.aspx			
    // By default, a URL does not belong to any group. Therefore, that cache may become
    // empty even when the CacheGroup APIs are not used because the existing URL does not belong to any group.			
    enumHandle = FindFirstUrlCacheGroup(0, CACHEGROUP_SEARCH_ALL, 0, 0, &groupId, 0);

	// If there are no items in the Cache, you are finished.
	if (enumHandle != NULL && ERROR_NO_MORE_ITEMS == GetLastError())
		return 0;
	
	// Loop through Cache Group, and then delete entries.
	while(1)
	{
		// Delete a particular Cache Group.
		returnValue = DeleteUrlCacheGroup(groupId, CACHEGROUP_FLAG_FLUSHURL_ONDELETE, 0);
		
		if (!returnValue && ERROR_FILE_NOT_FOUND == GetLastError())
		{	
			returnValue = FindNextUrlCacheGroup(enumHandle, &groupId, 0);
		}
		
		if (!returnValue && (ERROR_NO_MORE_ITEMS == GetLastError() || ERROR_FILE_NOT_FOUND == GetLastError()))
		{
			break;
		}
	}
Is the WinInet function FindFirstUrlCacheGroup() working in .Net Compact Framework?
===

I'm trying to delete some cache groups using the following C++ code. FindFirstUrlCacheGroup doesn't seem to return anything. groupId is still equal to 0 and I get an infinite loup in while(1).

The code works perfectly in PC.

    // Delete the groups first.
    // Groups may not always exist on the system.
    // For more information, visit the following Microsoft Web site:
    // http://msdn2.microsoft.com/en-us/library/ms909365.aspx			
    // By default, a URL does not belong to any group. Therefore, that cache may become
    // empty even when the CacheGroup APIs are not used because the existing URL does not belong to any group.			
    enumHandle = FindFirstUrlCacheGroup(0, CACHEGROUP_SEARCH_ALL, 0, 0, &groupId, 0);

	// If there are no items in the Cache, you are finished.
	if (enumHandle != NULL && ERROR_NO_MORE_ITEMS == GetLastError())
		return 0;
	
	// Loop through Cache Group, and then delete entries.
	while(1)
	{
		// Delete a particular Cache Group.
		returnValue = DeleteUrlCacheGroup(groupId, CACHEGROUP_FLAG_FLUSHURL_ONDELETE, 0);
		
		if (!returnValue && ERROR_FILE_NOT_FOUND == GetLastError())
		{	
			returnValue = FindNextUrlCacheGroup(enumHandle, &groupId, 0);
		}
		
		if (!returnValue && (ERROR_NO_MORE_ITEMS == GetLastError() || ERROR_FILE_NOT_FOUND == GetLastError()))
		{
			break;
		}
	}