mirror of https://github.com/tongzx/nt5src
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.
48 lines
1.1 KiB
48 lines
1.1 KiB
/*****************************************************************************************************************
|
|
|
|
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;
|
|
}
|