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.

40 lines
1.5 KiB

  1. /************************************************
  2. MultiUsr.h
  3. Header for multiple user functionality
  4. in Outlook Express.
  5. Initially by Christopher Evans (cevans) 4/28/98
  6. *************************************************/
  7. #ifndef _MULTIUSR_H
  8. #define _MULTIUSR_H
  9. interface IUserIdentity;
  10. #define USERPASSWORD_MAX_LENGTH 16
  11. #define CCH_USERNAME_MAX_LENGTH 63
  12. HRESULT MU_RegisterIdentityNotifier(IUnknown *punk, DWORD *pdwCookie);
  13. HRESULT MU_UnregisterIdentityNotifier(DWORD dwCookie);
  14. BOOL MU_CheckForIdentityLogout();
  15. HRESULT MU_GetCurrentUserInfo(LPSTR pszId, UINT cchId, LPSTR pszName, UINT cchName);
  16. HRESULT MU_GetCurrentUserDirectoryRoot(TCHAR *lpszUserRoot, int cch);
  17. HRESULT MU_GetIdentityDirectoryRoot(IUserIdentity *pIdentity, LPSTR lpszUserRoot, int cch);
  18. HKEY MU_GetCurrentUserHKey();
  19. HRESULT MU_OpenCurrentUserHkey(HKEY *pHkey);
  20. BOOL MU_Login(HWND hwnd, BOOL fForceUI, char *lpszUsername);
  21. BOOL MU_Logoff(HWND hwnd);
  22. DWORD MU_CountUsers();
  23. LPCTSTR MU_GetRegRoot();
  24. void MU_ResetRegRoot();
  25. LPCSTR MU_GetCurrentIdentityName();
  26. void MigrateOEMultiUserToIdentities(void);
  27. BOOL MU_IdentitiesDisabled();
  28. void MU_UpdateIdentityMenus(HMENU hMenu);
  29. void MU_IdentityChanged();
  30. HRESULT MU_Init(BOOL fDefaultId);
  31. void MU_Shutdown();
  32. void MU_NewIdentity(HWND hwnd);
  33. void MU_ManageIdentities(HWND hwnd);
  34. GUID *PGUIDCurrentOrDefault(void);
  35. #endif