/***************************************************************** * * Copyright(c) Microsoft Corp., 1988-1999 * *****************************************************************/ #include #include #include #include #include #include #include #include #include #include /***************************************************************** * * Globals * *****************************************************************/ BOOLEAN Enable = FALSE; BOOLEAN Verbose = FALSE; BOOLEAN HiberStatus = FALSE; /* * PrintHelp * * DESCRIPTION: This routine prints the help message * * RETURNS: VOID * */ VOID PrintHelp() { printf ("Enables/Disables Hibernation File\n\n"); printf ("EHIB [/e | /d] [/v] [/s]\n\n"); printf ("\t/e\tEnable Hibernation File\n"); printf ("\t/d\tDisable Hibernation File\n"); printf ("\t/s\tPrint Current Hibernate File Status\n"); printf ("\t/v\tVerbose Mode On\n\n"); } /* * ParseArgs * * Description: * This routine parses the input arguments and validates the * command line paramters * * Returns: * TRUE if valid command line usage/syntax * FALSE if invalid command line usage/syntax * */ BOOLEAN ParseArgs(argc, argv) int argc; char *argv[]; { int ii; BOOLEAN ValidArgs; // // Assume failure // ValidArgs = FALSE; if (argc < 2) { PrintHelp(); } else { for (ii=1; ii