mirror of https://github.com/tongzx/nt5src
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
48 lines
1.3 KiB
/****************************************************************************
|
|
* spuser.h
|
|
* <put description here>
|
|
*
|
|
* Owner: cthrash
|
|
* Copyright © 1999 Microsoft Corporation All Rights Reserved.
|
|
*****************************************************************************/
|
|
#pragma once
|
|
|
|
//--- Includes --------------------------------------------------------------
|
|
|
|
//--- TypeDef and Enumeration Declarations ----------------------------------
|
|
|
|
enum SearchOption_t
|
|
{
|
|
eSearchByName,
|
|
eSearchByLcid,
|
|
eHelp,
|
|
eNone
|
|
};
|
|
|
|
struct SearchArgument_t
|
|
{
|
|
CSpDynamicString dstrName;
|
|
LCID lcid;
|
|
};
|
|
|
|
struct NameValuePair
|
|
{
|
|
char * pszName;
|
|
LCID lcid;
|
|
};
|
|
|
|
//--- Forward and External Declarations -------------------------------------
|
|
|
|
SearchOption_t ParseCmdLine(LPSTR, SearchArgument_t *);
|
|
HRESULT ShowDefaultUser();
|
|
HRESULT SwitchDefaultUser(SearchOption_t, SearchArgument_t *);
|
|
void ShowUserName(WCHAR * pszName);
|
|
HRESULT Report(char * lpMsg, HRESULT hr);
|
|
|
|
//--- Constants -------------------------------------------------------------
|
|
|
|
//--- Class, Struct and Union Definitions -----------------------------------
|
|
|
|
//--- Function Declarations -------------------------------------------------
|
|
|
|
//--- Inline Function Definitions -------------------------------------------
|