home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DEFCON 15
/
DefCon15.bin
/
Speakers
/
Jennings
/
Extras
/
incognito
/
list_tokens.h
< prev
next >
Wrap
C/C++ Source or Header
|
2007-03-11
|
534b
|
29 lines
#ifndef INC_LIST_TOKENS_H
#define INC_LIST_TOKENS_H
// Token struct definitions
typedef struct
{
char username[256];
HANDLE token;
} SavedToken;
typedef struct
{
char username[256];
int token_num;
BOOL delegation_available;
BOOL impersonation_available;
} unique_user_token;
typedef enum
{
BY_USER,
BY_GROUP
} TOKEN_ORDER;
SavedToken *get_token_list(DWORD *num_tokens_enum);
void list_unique_tokens(TOKEN_ORDER);
void process_user_token(HANDLE, unique_user_token*, DWORD*, TOKEN_ORDER);
#endif