windows-nt/Source/XPSP1/NT/base/fs/utils/dfrg/intfuncs.cpp
2020-09-26 16:20:57 +08:00

49 lines
1.1 KiB
C++

/*****************************************************************************************************************
FILENAME: Intfuncs.cpp
COPYRIGHT© 2001 Microsoft Corporation and Executive Software International, Inc.
*/
#include "stdafx.h"
#ifndef SNAPIN
#include <windows.h>
#endif
#include "ErrMacro.h"
/*****************************************************************************************************************
COPYRIGHT© 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;
}