Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
CryptoAlgo Inc daad8a087a Add source files 4 years ago
..
makefile Add source files 4 years ago
makefile.inc Add source files 4 years ago
makefile.nm Add source files 4 years ago
makefile.sms Add source files 4 years ago
placefil.txt Add source files 4 years ago
precomp.h Add source files 4 years ago
readme.txt Add source files 4 years ago
sources Add source files 4 years ago
utillib.dsp Add source files 4 years ago
utillib.h Add source files 4 years ago
utillib.htm Add source files 4 years ago
utils.cpp Add source files 4 years ago
wbemsec.cpp Add source files 4 years ago
wbemsec.h Add source files 4 years ago

readme.txt

utillib.lib - A collection of routines used by some of the samples applications.

//***************************************************************************
// Function: WbemErrorString
// Purpose: Turns sc into a text string
//***************************************************************************
//***************************************************************************
// Function: PrintError
// Purpose: Formats and prints the error message
//***************************************************************************
//***************************************************************************
// Function: PrintErrorAndExit
// Purpose: Formats an error message & exits program
//***************************************************************************
//***************************************************************************
// Function: PrintErrorAndAsk
// Purpose: Prints the error message and prompts to continue
//***************************************************************************
//*****************************************************************************
// Function: TypeToString
// Purpose: Takes a variant, returns a pointer to a string that is the variant type
//*****************************************************************************
//*****************************************************************************
// Function: TypeToString
// Purpose: Takes a VARTYPE, returns a pointer to a string that is the variant type
//*****************************************************************************
//*****************************************************************************
// Function: TypeToString
// Purpose: Takes a CIMTYPE, returns a pointer to a string that is the variant type
//*****************************************************************************
//*****************************************************************************
// Function: ValueToString
// Purpose: Takes a variant, returns a string representation of that variant
//*****************************************************************************
//*****************************************************************************
// Function: cvt
// Purpose: Converts unicode to oem for console output
// Note: y must be freed by caller
//*****************************************************************************
//*****************************************************************************
// Function: myWFPrintf
// Purpose: Checks to see if outputing to console and converts strings
// to oem if necessary.
// Note: Returns number of characters written (ie if we write 3 oem
// chars, it returns 3. If it writes 4 wchars, it returns 4).
//*****************************************************************************
//*****************************************************************************
// Function: difftime
// Purpose: Returns the elapsed time between two _timeb structures
// Note: This is different from the crt routine which works on time_t
// structures.
//*****************************************************************************