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.
 
 
 
 
 
 

57 lines
1.5 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: dfname.cxx
//
// Contents: CDfName implementation
//
// History: 14-May-93 DrewB Created
//
//----------------------------------------------------------------------------
#include <dfhead.cxx>
#pragma hdrstop
//+---------------------------------------------------------------------------
//
// Member: CDfName::IsEqual, public
//
// Synopsis: Compares two CDfNames
//
// Arguments: [pdfn] - Name to compare against
//
// Returns: TRUE/FALSE
//
// History: 11-May-93 DrewB Created
//
//----------------------------------------------------------------------------
BOOL CDfName::IsEqual(CDfName const *pdfn) const
{
if (_cb != pdfn->_cb)
return FALSE;
return dfwcsnicmp((WCHAR *)_ab, (WCHAR *)pdfn->_ab, _cb/sizeof(WCHAR)) == 0;
}
//+---------------------------------------------------------------------------
//
// Member: CDfName::CopyString, public
//
// Synopsis: Makes a proper copy of a name in a WCHAR string
//
// Arguments: [pwcs] - String
//
// History: 14-May-93 DrewB Created
//
// Notes: Uses leading characters to determine the format of
// the name in the string
//
//----------------------------------------------------------------------------
void CDfName::CopyString(WCHAR const *pwcs)
{
Set(pwcs);
}