Windows2003-3790/inetsrv/query/h/langres.hxx
2020-09-30 16:53:55 +02: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 );
};