ReactOS 0.4.16-dev-311-g9382aa2
|
#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 (INT ResId) |
void | WhoamiPrintHeader (int 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 | 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 155 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
Definition at line 75 of file whoami.c.
Referenced by WhoamiGetTokenInfo(), WhoamiGroups(), WhoamiLogonId(), WhoamiPrintTable(), WhoamiPriv(), WhoamiUser(), and wmain().
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 462 of file whoami.c.
Referenced by wmain().
Definition at line 121 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPrintHeader(), WhoamiPriv(), WhoamiUser(), and wmain().
Definition at line 375 of file whoami.c.
Referenced by wmain().
Definition at line 131 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
void WhoamiPrintTable | ( | WhoamiTable * | pTable | ) |
Definition at line 199 of file whoami.c.
Referenced by WhoamiGroups(), WhoamiPriv(), and WhoamiUser().
Definition at line 589 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 419 of file whoami.c.
Referenced by wmain().
Definition at line 665 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().