//---------------------------------------------------------------------- // // Copyright (C) 2009 Intel Corporation // // File: HostBasedSetupSample.h // //---------------------------------------------------------------------- #ifndef _HOST_BASED_SETUP_SAMPLE_H #define _HOST_BASED_SETUP_SAMPLE_H #include using namespace std; static const char* CMD_DISCOVERY = "discovery"; static const char* CMD_SETUP = "setup"; static const char* CMD_NEWPASS = "newpass"; static const char* CMD_ADAPTERNAME = "adaptername"; static const char* CMD_DISABLE = "disable"; static const char* CMD_FORCE = "force"; static const char* CMD_UNPROVISION = "unprovision"; static const char* CMD_WMI = "wmi"; typedef struct _HOST_BASED_SETUP_PARAMS { bool Discovery; bool Setup; string NewAdminPassword; string AdapterName; bool Disable; bool Force; bool Unprovision; bool WMI; }HOST_BASED_SETUP_PARAMS; bool Parse(int argc, char* argv[], HOST_BASED_SETUP_PARAMS* params); void DisplayUsage(); string GetControlModeString(unsigned char controlMode); #endif