Source code of Windows XP (NT5)
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.

48 lines
1.3 KiB

  1. /****************************************************************************
  2. * spuser.h
  3. * <put description here>
  4. *
  5. * Owner: cthrash
  6. * Copyright 1999 Microsoft Corporation All Rights Reserved.
  7. *****************************************************************************/
  8. #pragma once
  9. //--- Includes --------------------------------------------------------------
  10. //--- TypeDef and Enumeration Declarations ----------------------------------
  11. enum SearchOption_t
  12. {
  13. eSearchByName,
  14. eSearchByLcid,
  15. eHelp,
  16. eNone
  17. };
  18. struct SearchArgument_t
  19. {
  20. CSpDynamicString dstrName;
  21. LCID lcid;
  22. };
  23. struct NameValuePair
  24. {
  25. char * pszName;
  26. LCID lcid;
  27. };
  28. //--- Forward and External Declarations -------------------------------------
  29. SearchOption_t ParseCmdLine(LPSTR, SearchArgument_t *);
  30. HRESULT ShowDefaultUser();
  31. HRESULT SwitchDefaultUser(SearchOption_t, SearchArgument_t *);
  32. void ShowUserName(WCHAR * pszName);
  33. HRESULT Report(char * lpMsg, HRESULT hr);
  34. //--- Constants -------------------------------------------------------------
  35. //--- Class, Struct and Union Definitions -----------------------------------
  36. //--- Function Declarations -------------------------------------------------
  37. //--- Inline Function Definitions -------------------------------------------