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.
|
|
//
// Enable driver verifier support for ntoskrnl
// Copyright (c) Microsoft Corporation, 1999
//
//
// module: resutil.cxx
// author: DMihai
// created: 04/19/99
// description: resources manipulation routines
//
#include <windows.h>
#include <tchar.h>
#include "genutil.hxx"
#include "resutil.hxx"
//////////////////////////////////////////////////////////////////////
BOOL GetStringFromResources( UINT uIdResource, TCHAR *strResult, int nBufferLen ) { UINT LoadStringResult;
LoadStringResult = LoadString ( GetModuleHandle (NULL), uIdResource, strResult, nBufferLen );
assert_ (LoadStringResult > 0);
return (LoadStringResult > 0); }
//////////////////////////////////////////////////////////////////////
void PrintStringFromResources(
UINT uIdResource) { TCHAR strStringFromResource[ 1024 ]; BOOL bResult;
bResult = GetStringFromResources( uIdResource, strStringFromResource, ARRAY_LEN( strStringFromResource ) ); if( bResult == TRUE ) { _putts( strStringFromResource ); } }
|