|
// PSLUser.cpp : Implementation of CPSLUser
#include "stdafx.h"
#include "PSLUser.h"
CPSLUser::CPSLUser()
{
// Get User Name:
TCHAR buffer[UNLEN + 1];
DWORD dwSize = UNLEN + 1;
::GetUserName(buffer, &dwSize);
m_Name = buffer;
}
HRESULT CPSLUser::FinalConstruct()
{
return S_OK;
}
void CPSLUser::FinalRelease()
{
}
////////////////////////////////////////////////////////////////////////
// Interface Implementation;
////////////////////////////////////////////////////////////////////////
STDMETHODIMP CPSLUser::get_Name(BSTR *pValue)
{
PSL_BEGIN
*pValue = m_Name.copy();
PSL_END
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.