windows-nt/Source/XPSP1/NT/base/fs/utils/dfrg/intfuncs.cpp

49 lines
1.1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*****************************************************************************************************************
FILENAME: Intfuncs.cpp
COPYRIGHT<EFBFBD> 2001 Microsoft Corporation and Executive Software International, Inc.
*/
#include "stdafx.h"
#ifndef SNAPIN
#include <windows.h>
#endif
#include "ErrMacro.h"
/*****************************************************************************************************************
COPYRIGHT<EFBFBD> 2001 Microsoft Corporation and Executive Software International, Inc.
ROUTINE DESCRIPTION:
This retrieves a string from the string table and writes it into a buffer.
INPUT + OUTPUT:
OUT TCHAR* cOutString - The buffer to write the string into.
IN DWORD dwOutStringLen - The number of bytes in that buffer.
IN DWORD dwResourceId - The resource id of the desired string.
IN HINSTANCE hInst - The instance so we can access the resources.
GLOBALS:
None.
RETURN:
NULL - Fatal error.
TCHAR* - cOutString
*/
TCHAR*
GetString(
OUT TCHAR* ptOutString,
IN DWORD dwOutStringLen,
IN DWORD dwResourceId,
IN HINSTANCE hInst
)
{
EF(LoadString(hInst, dwResourceId, ptOutString, dwOutStringLen));
return ptOutString;
}