win_util.hpp

Windowsに関するユーティリティ群. [詳細]

#include <shlobj.h>
#include <string>
#include "langedge/pathname.hpp"

win_util.hppのインクルード依存関係図

ソースコードを見る。

ネームスペース

namespace  langedge

関数

bool isPlatformWin32NT ()
 NT/2000/XP系かどうかの判定.
std::string getPersonalFolderPath ()
 個人用フォルダ (マイドキュメント) のパスを得る.
std::string getAppDataFolderPath ()
 アプリケーションデータフォルダのパスを得る.
std::string getUserName ()
 ユーザ名を得る.
std::string getMyApplicationPath (HINSTANCE hInstance=0)
 実行中のアプリケーションやDLLのパスを返す.
std::string getAppDirectoryPath (HINSTANCE hInstance=0)
 実行中のアプリケーションやDLLのおかれているディレクトリのパスを返す.


説明

Windowsに関するユーティリティ群.

作者:
OKA Toshiyuki (LangEdge, Inc.)
日付:
2003-09-19
バージョン:
Id
win_util.hpp,v 1.1.1.1 2005/03/30 11:33:30 exoka Exp
This file is in the PUBLIC DOMAIN.

関数

bool langedge::isPlatformWin32NT  )  [inline]
 

NT/2000/XP系かどうかの判定.

戻り値:
true NT/2000/XP系
false 98/Me系

std::string langedge::getPersonalFolderPath  )  [inline]
 

個人用フォルダ (マイドキュメント) のパスを得る.

戻り値:
個人用フォルダ(マイドキュメント)のパス (例: C:\Documents and Settings\{ユーザ}\My Documents)

std::string langedge::getAppDataFolderPath  )  [inline]
 

アプリケーションデータフォルダのパスを得る.

戻り値:
アプリケーションデータフォルダのパス (例: C:\Documents and Settings\{ユーザ}\Application Data)

std::string langedge::getUserName  )  [inline]
 

ユーザ名を得る.

戻り値:
ユーザ名

std::string langedge::getMyApplicationPath HINSTANCE  hInstance = 0  )  [inline]
 

実行中のアプリケーションやDLLのパスを返す.

引数:
hInstance アプリケーション(モジュール)のインスタンスID。 0 (デフォルト) を指定すると自アプリとなる。
DLL のパスを得る場合は、DllMain() で渡される DLLモジュールハンドルを指定する。
戻り値:
実行中のアプリケーションやDLLのパス

std::string langedge::getAppDirectoryPath HINSTANCE  hInstance = 0  )  [inline]
 

実行中のアプリケーションやDLLのおかれているディレクトリのパスを返す.

引数:
hInstance アプリケーション(モジュール)のインスタンスID。 0 (デフォルト) を指定すると自アプリとなる。
DLL のパスを得る場合は、DllMain() で渡される DLLモジュールハンドルを指定する。
戻り値:
実行中のアプリケーションやDLLのおかれているディレクトリのパス


LangEdge ライブラリに対してFri May 6 22:42:59 2005に生成されました。  doxygen 1.4.2