Jul 31 20 7:39 pm
Aug 04 20 3:31 pm
// OK, we need to kick off a search which returns all the groups this object is a member of
UDB_SEARCH_INFO Search;
Search.dwFlags = UDB_SEARCH_USESTRINGVALUE | UDB_SEARCH_ALLOBJECTS | UDB_SEARCH_MEMBEROF;
Search.strValue = m_strObjectGUID.c_str();
Search.dwField = UDB_SEARCH_FIELD_GUID;
Search.dwItems = 0;
Search.pContext = this;
Search.pCallbackFunc = GetMemberofCallbackFunc;
UDBHandle hSearch;
SPI::UDBSearchOpen(&Search, &hSearch);
SPI::UDBCloseHandle(hSearch);
HRESULT UDBObjectGetInfo(WinGateSDK::UDBHandle hObject, WinGateSDK::UDB_OBJECT_INFO** ppInfo);
HRESULT UDBObjectFreeInfo(WinGateSDK::UDB_OBJECT_INFO* pInfo);
Aug 05 20 3:42 am
Aug 05 20 5:28 am
Aug 05 20 12:08 pm
SadTroll wrote:And how to check for the end of search results?
Aug 08 20 3:12 am
Aug 11 20 3:20 pm
Aug 11 20 10:32 pm
Aug 13 20 1:41 am
info.dwFlags = UDB_SEARCH_USESTRINGVALUE | UDB_SEARCH_USERS | UDB_SEARCH_MEMBERS;
info.strValue = obj->strGUID;
info.dwField = UDB_SEARCH_FIELD_GUID;
info.dwItems = 0;
info.dwFlags = UDB_SEARCH_USESTRINGVALUE | UDB_SEARCH_USERS | UDB_SEARCH_MEMBERS;
info.strValue = obj->strName;
info.dwField = UDB_SEARCH_FIELD_NAME;
info.dwItems = 0;
Aug 13 20 1:50 pm
Aug 13 20 8:53 pm
Aug 20 20 2:12 pm