windows-nt/Source/XPSP1/NT/inetsrv/query/h/langres.hxx
2020-09-26 16:20:57 +08:00

54 lines
1.6 KiB
C++

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1994.
//
// File: langres.hxx
//
// Contents: Interacts with the registry to obtain local specific info.
//
// Classes: CLangRes
//
// History: 2-14-97 mohamedn created
//
//----------------------------------------------------------------------------
#pragma once
//+---------------------------------------------------------------------------
//
// Class: CLangRes
//
// Purpose: obtains language resource configuration information (IWordBreaker,
// IStemmer, and NoiseWordList) from the registry.
//
// History: 2-14-97 mohamedn created
//
// Notes:
//
//----------------------------------------------------------------------------
class CLangRes
{
public:
static SCODE GetWordBreaker( LCID locale,
PROPID pid,
IWordBreaker ** ppwbBreaker );
static SCODE GetStemmer ( LCID locale,
PROPID pid,
IStemmer ** ppStemmer );
static SCODE GetNoiseWordList( LCID locale,
PROPID pid,
IStream ** ppIStrmNoiseFile);
static void StringToCLSID( WCHAR *wszClass, GUID& guidClass );
private:
static IStream * _GetIStrmNoiseFile(const WCHAR *pwszNoiseFile );
};