etc.negui.file.com.shortcut

ショートカット用。
ToDo:
久しぶりに見てみたら凄惨な状態で吹いた。 手直しが必要。
History:
1.020
  • sourcepackage変更。
1.00β13
  • source変更(module -> link)。
class ShortcutException: etc.negui.com.com.ComException;

class Shortcut: etc.negui.com.com.Com!(IShellLinkW).Com, etc.negui.com.ipersistfile.IComPersistFile;
ショートカット。
History:
1.00β13
  • 新規作成。
size_t filePathLength;

size_t optionLength;

size_t commnetLength;

protected Com!(IPersistFile) PersistFile;

protected Window Owner;

protected void Kill();

this();
History:
1.130
  • 新規作成。
this(Window Owner );
History:
1.130
  • programコンストラクタ処理をthis()へ。
bool fileLoad(in Text FilePath , STGM Stgm );
ショートカットファイル読み込み。
Params:
Text FilePath
読み込むショートカットのアドレス。
STGM Stgm
読み込み時に使用するフラグ。
Returns:
成功の真偽値。 *.lnk, 実ファイル処理 -----------------
bool fileSave(in Text FilePath , bool Remember );
*.lnk, 実ファイル処理 -----------------
bool isDirty();
*.lnk, 実ファイル処理 -----------------
FILEITEM* fileItem;
ショートカット先情報。
使用するにはポインタを指した後、address()を呼び出す。
Text address();
History:
1.070
  • program読み込み失敗時にassertでは無くException。
bool address(in Text text );

Text workFolder();

bool workFolder(in Text text );

Text option();

bool option(in Text text );

Text getIcon(out int IconIndex );

bool setIcon(in Text IconPath , int IconIndex );
アイコンの設定。
Params:
Text IconPath
アイコンのアドレス。
int IconIndex
アイコンインデックス。
Returns:
成功の真偽値。
Text comment();

bool comment(Text text );

HOTKEYVALUE hotKey();

bool hotKey(HOTKEYVALUE HotKeyValue );

SHOW show();

bool show(SHOW Show );