EnumRows attrQueryRows;
if ((hr = table.Search(L"*", L"UP_DATE > date '2007-05-23 11:13:59'", true, attrQueryRows)) != S_OK)
{
wcout << "An error occurred while performing the attribute query." << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return -1;
}