windows-nt/Source/XPSP1/NT/admin/wmi/wbem/sdk/psstools/utillib
2020-09-26 16:20:57 +08:00
..
makefile Add source files 2020-09-26 16:20:57 +08:00
makefile.inc Add source files 2020-09-26 16:20:57 +08:00
makefile.nm Add source files 2020-09-26 16:20:57 +08:00
makefile.sms Add source files 2020-09-26 16:20:57 +08:00
placefil.txt Add source files 2020-09-26 16:20:57 +08:00
precomp.h Add source files 2020-09-26 16:20:57 +08:00
readme.txt Add source files 2020-09-26 16:20:57 +08:00
sources Add source files 2020-09-26 16:20:57 +08:00
utillib.dsp Add source files 2020-09-26 16:20:57 +08:00
utillib.h Add source files 2020-09-26 16:20:57 +08:00
utillib.htm Add source files 2020-09-26 16:20:57 +08:00
utils.cpp Add source files 2020-09-26 16:20:57 +08:00
wbemsec.cpp Add source files 2020-09-26 16:20:57 +08:00
wbemsec.h Add source files 2020-09-26 16:20:57 +08:00

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.
//*****************************************************************************