//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1997 - 1999 // // File: strings.h // //-------------------------------------------------------------------------- #ifndef __strings_h #define __strings_h HRESULT LocalAllocString(LPTSTR* ppResult, LPCTSTR pString); HRESULT LocalAllocStringLen(LPTSTR* ppResult, UINT cLen); void LocalFreeString(LPTSTR* ppString); UINT SizeofStringResource(HINSTANCE hInstance, UINT idStr); int LoadStringAlloc(LPTSTR *ppszResult, HINSTANCE hInstance, UINT idStr); // String formatting functions - *ppszResult must be LocalFree'd DWORD FormatStringID(LPTSTR *ppszResult, HINSTANCE hInstance, UINT idStr, ...); DWORD FormatString(LPTSTR *ppszResult, LPCTSTR pszFormat, ...); DWORD vFormatStringID(LPTSTR *ppszResult, HINSTANCE hInstance, UINT idStr, va_list *pargs); DWORD vFormatString(LPTSTR *ppszResult, LPCTSTR pszFormat, va_list *pargs); DWORD GetSystemErrorText(LPTSTR *ppszResult, DWORD dwErr); #endif