mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-08 14:36:22 +01:00
22 lines
599 B
C
22 lines
599 B
C
/*!
|
|
* @file args.h
|
|
* @brief Definitions for argument parsing functionality.
|
|
*/
|
|
#ifndef _METERPRETER_LIB_ARGS_H
|
|
#define _METERPRETER_LIB_ARGS_H
|
|
|
|
#include "linkage.h"
|
|
|
|
/*! @brief State container for \c args_parse calls. */
|
|
typedef struct
|
|
{
|
|
DWORD currentIndex; ///< The index of the argument being parsed.
|
|
PCHAR argument; ///< Pointer to the current switch's argument.
|
|
CHAR toggle; ///< Indicates of this parameter is a toggle parameter.
|
|
} ArgumentContext;
|
|
|
|
LINKAGE DWORD args_parse(UINT argc, CHAR **argv, PCHAR params,
|
|
ArgumentContext *ctx);
|
|
|
|
#endif
|