Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB

  1. //
  2. // Author: DebiM
  3. // Date: September 1996
  4. //
  5. // File: csuser.cxx
  6. //
  7. // Maintains a list of class containers per User SID.
  8. // Looks up this list for every IClassAccess call from OLE32/SCM.
  9. //
  10. //
  11. //---------------------------------------------------------------------
  12. //
  13. // Link list structure for User Profiles Seen
  14. //
  15. typedef struct tagUSERPROFILE
  16. {
  17. PSID pCachedSid;
  18. PCLASSCONTAINER *pUserStoreList;
  19. DWORD cUserStoreCount;
  20. tagUSERPROFILE *pNextUser;
  21. } USERPROFILE;
  22. DWORD
  23. OpenUserRegKey(
  24. IN PSID pSid,
  25. IN WCHAR * pwszSubKey,
  26. OUT HKEY * phKey
  27. );
  28. HRESULT GetUserSid(PSID *ppUserSid, UINT *pCallType);
  29. PCLASSCONTAINER
  30. GetClassStore (LPOLESTR pszPath);
  31. HRESULT GetPerUserClassStore(
  32. LPOLESTR pszClassStorePath,
  33. PSID pSid,
  34. UINT CallType,
  35. LPOLESTR **ppStoreList,
  36. DWORD *pcStores);
  37. HRESULT GetUserClassStores(
  38. LPOLESTR pszClassStorePath,
  39. PCLASSCONTAINER **ppStoreList,
  40. DWORD *pcStores,
  41. BOOL *pfCache,
  42. PSID *ppUserSid);
  43.