www.pudn.com > ViewerCarry.rar > PhookUtil.cpp
// PhookUtil.cpp: implementation of the CPhookUtil class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "thumbviewer.h"
#include "PhookUtil.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CPhookUtil::CPhookUtil()
{
}
CPhookUtil::~CPhookUtil()
{
}
CString CPhookUtil::GetNowPath(void)
{
TCHAR sDrive[_MAX_DRIVE];
TCHAR sDir[_MAX_DIR];
TCHAR sFname[_MAX_FNAME];
TCHAR sExt[_MAX_EXT];
TCHAR sFilename[MAX_PATH];
::GetModuleFileName(NULL,sFilename,MAX_PATH);
_tsplitpath(sFilename, sDrive, sDir, sFname, sExt);
CString rVal;
rVal.Format(_T("%s%s"), sDrive, sDir);
return rVal;
}