Leaked source code of windows server 2003
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.

34 lines
816 B

  1. #ifndef _UTIL_H_8_25_2000
  2. #define _UTIL_H_8_25_2000
  3. #define INIT_SIZE 1024
  4. //General Utility Functions
  5. DWORD ResizeByTwo( LPTSTR *ppBuffer,
  6. LONG *pSize );
  7. BOOL StringCopy( LPWSTR *ppDest, LPWSTR pSrc);
  8. LONG ReadFromIn(LPTSTR *ppBuffer);
  9. //+----------------------------------------------------------------------------
  10. // Function: ConvertStringToInterger
  11. // Synopsis: Converts string to integer. Returns false if string is outside
  12. // the range on an integer
  13. // Arguments:pszInput: integer in string format
  14. // :pIntOutput:takes converted integer
  15. //// Returns:TRUE is successful.
  16. //-----------------------------------------------------------------------------
  17. BOOL ConvertStringToInterger(LPWSTR pszInput, int* pIntOutput);
  18. #endif