1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-24 18:16:24 +01:00

22 lines
599 B
C
Raw Normal View History

2013-10-04 14:41:00 +10:00
/*!
* @file args.h
* @brief Definitions for argument parsing functionality.
*/
#ifndef _METERPRETER_LIB_ARGS_H
#define _METERPRETER_LIB_ARGS_H
#include "linkage.h"
2013-10-04 18:03:35 +10:00
/*! @brief State container for \c args_parse calls. */
typedef struct
{
2013-10-04 18:03:35 +10:00
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