PNSCATALOG WSAAPI WsProcGetNsCatalog(IN PWSPROCESS Process) { /* Check if the catalogs have been modified */ if (WsCheckCatalogState(Process->NamespaceCatalogEvent)) { /* Modification happened, reload them */ WsNcRefreshFromRegistry(Process->NamespaceCatalog, Process->NamespaceCatalogEvent); } /* Return it */ return Process->NamespaceCatalog; }
INT WSAAPI WsNcInitializeFromRegistry(IN PNSCATALOG Catalog, IN HKEY ParentKey, IN HANDLE CatalogEvent) { INT ErrorCode = WSASYSCALLFAILURE; /* Open the catalog */ if (WsNcOpen(Catalog, ParentKey)) { /* Refresh it */ ErrorCode = WsNcRefreshFromRegistry(Catalog, CatalogEvent); } /* Return the status */ return ErrorCode; }