krb5_context CLeashApp::m_krbv5_context = 0;
profile_t CLeashApp::m_krbv5_profile = 0;
HINSTANCE CLeashApp::m_hKrbLSA = 0;
+int CLeashApp::m_useRibbon = TRUE;
/////////////////////////////////////////////////////////////////////////////
// CLeashApp
// Check for args (switches)
LPCTSTR exeFile = __targv[0];
- LPCTSTR optionParam = __targv[1];
+ for (int argi = 1; argi < __argc; argi++) {
+ LPCTSTR optionParam = __targv[argi];
+
+ if (!optionParam)
+ continue;
- if (optionParam)
- {
if (*optionParam == '-' || *optionParam == '/')
{
if (0 == stricmp(optionParam+1, "kinit") ||
{
CreateConsoleEcho();
}
+ else if (0 == stricmp(optionParam+1, "noribbon"))
+ {
+ m_useRibbon = FALSE;
+ }
else
{
MessageBox(hMsg,
static krb5_context m_krbv5_context;
static profile_t m_krbv5_profile;
static HINSTANCE m_hKrbLSA;
+ static int m_useRibbon; // temporary while ribbon UI in dev
CLeashApp();
virtual ~CLeashApp();