|
ReactOS 0.4.16-dev-2613-g9533ad7
|
#include <security.h>#include <sddl.h>#include <strsafe.h>#include <conutils.h>#include "resource.h"
Go to the source code of this file.
Classes | |
| struct | WhoamiTable |
Macros | |
| #define | SECURITY_WIN32 |
| #define | wprintf(...) ConPrintf(StdOut, ##__VA_ARGS__) |
| #define | RC_STRING_MAX_SIZE 850 |
| #define | WAM_USER (1 << 0) |
| #define | WAM_GROUPS (1 << 1) |
| #define | WAM_PRIV (1 << 2) |
Enumerations | |
| enum | { undefined , table , list , csv } |
Functions | |
| BOOL | GetArgument (WCHAR *arg, int argc, WCHAR *argv[]) |
| void | BlankArgument (int argc, WCHAR *argv[]) |
| LPWSTR | WhoamiGetUser (EXTENDED_NAME_FORMAT NameFormat) |
| BOOL | WhoamiFree (VOID *Buffer) |
| VOID * | WhoamiGetTokenInfo (TOKEN_INFORMATION_CLASS TokenType) |
| LPWSTR | WhoamiLoadRcString (UINT ResId) |
| void | WhoamiPrintHeader (UINT HeaderId) |
| WhoamiTable * | WhoamiAllocTable (UINT Rows, UINT Cols) |
| void | WhoamiSetTable (WhoamiTable *pTable, WCHAR *Entry, UINT Row, UINT Col) |
| void | WhoamiSetTableDyn (WhoamiTable *pTable, WCHAR *Entry, UINT Row, UINT Col) |
| void | WhoamiFreeTable (WhoamiTable *pTable) |
| void | WhoamiPrintTable (WhoamiTable *pTable) |
| int | WhoamiLogonId (void) |
| int | WhoamiUser (void) |
| int | WhoamiGroups (void) |
| int | WhoamiPriv (void) |
| int | wmain (int argc, WCHAR *argv[]) |
Variables | |
| BOOL | NoHeader = FALSE |
| UINT | NoHeaderArgCount = 0 |
| UINT | PrintFormatArgCount = 0 |
| enum { ... } | PrintFormat = undefined |
| #define RC_STRING_MAX_SIZE 850 |
| #define WAM_GROUPS (1 << 1) |
| #define WAM_PRIV (1 << 2) |
| #define WAM_USER (1 << 0) |
| anonymous enum |
Definition at line 33 of file whoami.c.
Referenced by wmain().
| WhoamiTable * WhoamiAllocTable | ( | UINT | Rows, |
| UINT | Cols | ||
| ) |
Definition at line 158 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
Definition at line 75 of file whoami.c.
Referenced by WhoamiFreeTable(), WhoamiGetTokenInfo(), WhoamiGroups(), WhoamiLogonId(), WhoamiPriv(), WhoamiUser(), and wmain().
| void WhoamiFreeTable | ( | WhoamiTable * | pTable | ) |
Definition at line 199 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
| VOID * WhoamiGetTokenInfo | ( | TOKEN_INFORMATION_CLASS | TokenType | ) |
Definition at line 81 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiLogonId(), WhoamiPriv(), and WhoamiUser().
| LPWSTR WhoamiGetUser | ( | EXTENDED_NAME_FORMAT | NameFormat | ) |
Definition at line 57 of file whoami.c.
Referenced by WhoamiUser(), and wmain().
Definition at line 480 of file whoami.c.
Referenced by wmain().
Definition at line 121 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
Definition at line 392 of file whoami.c.
Referenced by wmain().
Definition at line 130 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
| void WhoamiPrintTable | ( | WhoamiTable * | pTable | ) |
Definition at line 217 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
Definition at line 604 of file whoami.c.
Referenced by wmain().
| void WhoamiSetTable | ( | WhoamiTable * | pTable, |
| WCHAR * | Entry, | ||
| UINT | Row, | ||
| UINT | Col | ||
| ) |
Definition at line 176 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
| void WhoamiSetTableDyn | ( | WhoamiTable * | pTable, |
| WCHAR * | Entry, | ||
| UINT | Row, | ||
| UINT | Col | ||
| ) |
Definition at line 436 of file whoami.c.
Referenced by wmain().
Definition at line 681 of file whoami.c.
Definition at line 20 of file whoami.c.
Referenced by WhoamiPrintHeader(), WhoamiPrintTable(), and wmain().
| enum { ... } PrintFormat |
Referenced by WhoamiPrintHeader(), WhoamiPrintTable(), and wmain().