예제 #1
0
std::wstring GetModuleName(HMODULE module_handle)
{
	//DCHECK(IsModuleHandleValid(module_handle));
	std::wstring module_name;
	if (FilePathApartFileName(GetModulePathName(module_handle), module_name))
		return module_name;
	return L"";
}
예제 #2
0
std::wstring GetModuleDirectory(HMODULE module_handle)
{
	//DCHECK(IsModuleHandleValid(module_handle));
	std::wstring module_directory;
	if (FilePathApartDirectory(GetModulePathName(module_handle), module_directory))
		return module_directory;
	return L"";
}
예제 #3
0
파일: opstr.cpp 프로젝트: kaka-jeje/zhu
LPCTSTR GetAppPath()
{
	static CString g_strAppPath;
	if (g_strAppPath.IsEmpty())
	{
		g_strAppPath = GetModulePathName();
	}
	return (LPCTSTR)g_strAppPath;
}
예제 #4
0
CSySkin::CSySkin(void)
{
	m_hModule = NULL;
	m_pFunc = NULL;
	ZeroMemory(m_szCurrPath, MAX_PATH);
	ZeroMemory(m_szDLLPath, MAX_PATH);
	ZeroMemory(m_szSkinPath, MAX_PATH);
	GetModulePathName(m_szCurrPath, MAX_PATH);
}
예제 #5
0
std::wstring GetCurrentModulePathName()
{
	return GetModulePathName(GetCurrentModuleHandle());
}