wcsncat_s(szPath, var.bstrVal, MAX_PATH - wcslen(szPath)) //hr = ADsOpenObject(szPath, wcsncpy_s(szPath, L"LDAP://", MAX_PATH) Hr = pObject->Get(_bstr_t("defaultNamingContext"), &var) LPOLESTR pszBuffer = new OLECHAR ĪDS_SECURE_AUTHENTICATION, // Use Secure Authentication. IDirectorySearch *pContainerToSearch = NULL Get rootDSE and the current user domain container distinguished name. LPOLESTR *pszPropertiesToReturn, // Properties to return for user objects found.īOOL bIsVerbose // TRUE indicates that display all properties for the found objects. LPOLESTR szFilter, // Filter to find specific users. #include HRESULT FindComputers(IDirectorySearch *pContainerToSearch, // IDirectorySearch pointer to the container to search. ConsoleApplication3.cpp : Defines the entry point for the console application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |