Esempio n. 1
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "digicredit.lnk";
}
Esempio n. 2
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "cloudtokens.lnk";
}
Esempio n. 3
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "federalreserveCoin.lnk";
}
Esempio n. 4
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "LuckyBlocks.lnk";
}
Esempio n. 5
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "peacebytrade.lnk";
}
Esempio n. 6
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "lontaicoin.lnk";
}
Esempio n. 7
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "Hóuziyìngbì.lnk";
}
Esempio n. 8
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "CryptoPowers.lnk";
}
Esempio n. 9
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "SmallChange.lnk";
}
Esempio n. 10
0
RString SpecialDirs::GetAppDataDir()
{
	return GetSpecialFolderPath( CSIDL_APPDATA );
}
Esempio n. 11
0
RString SpecialDirs::GetDesktopDir()
{
	return GetSpecialFolderPath( CSIDL_DESKTOP );
}
Esempio n. 12
0
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, 
                    LPSTR /*lpszCmdLine*/, int /*cmdShow*/)       
     {
	 HWND        hwnd ;
     MSG         msg ;
     WNDCLASSEX  wc ;
     HACCEL      hAccel ;
	 int		 a;
	 int		 scmd;
	 char		 a1;
	 HANDLE      hMutex ;
	 char		 tmp[_MAX_PATH];

	 hMutex = CreateMutex(NULL, TRUE, MUTEX_NAME);
	 if(GetLastError() == ERROR_ALREADY_EXISTS){
		 EnumWindows((WNDENUMPROC)EnumWindowsProc, NULL);
		 return 0;
	 }

     InitCommonControls () ;
	 OleInitialize(NULL);
#ifdef FOOTYSTATIC
	 Footy2Start(hInstance);
#endif	/*FOOTYSTATIC*/
//	 FootySetCursor(IDC_ONLINE, IDC_ONURL);	// 2008-02-17 Shark++ 代替機能不明
	 //FootySetMetrics(0, F_SM_CREATESHOW, F_CS_HIDE, false);

     hInst = hInstance ;

	 wc.cbSize        = sizeof (wc) ;
     wc.lpszClassName = szAppName ;
     wc.hInstance     = hInstance ;
     wc.lpfnWndProc   = WndProc ;
     wc.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wc.hIcon         = LoadIcon (hInst, szAppName) ;
     wc.lpszMenuName  = szAppName ;
     wc.hbrBackground = NULL;
     wc.style         = 0 ;
     wc.cbClsExtra    = 0 ;
     wc.cbWndExtra    = 0 ;
	 wc.hIconSm       = LoadIcon (hInst, szAppName) ;

     RegisterClassEx (&wc) ;

     wc.lpszClassName = "ClientWndProc" ;
     wc.hInstance     = hInstance ;
     wc.lpfnWndProc   = ClientWndProc ;
     wc.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wc.hIcon         = LoadIcon (NULL, IDI_APPLICATION) ;
     wc.lpszMenuName  = NULL ;
     wc.hbrBackground = NULL ;
     wc.style         = 0 ;
     wc.cbClsExtra    = 0 ;
     wc.cbWndExtra    = 0 ;
	 wc.hIconSm       = LoadIcon (NULL, IDI_APPLICATION) ;

     RegisterClassEx (&wc) ;

	 wc.lpszClassName = "DummyWndProc" ;
     wc.hInstance     = hInstance ;
     wc.lpfnWndProc   = DefWindowProc ;
     wc.hCursor       = LoadCursor (NULL, IDC_ARROW) ;
     wc.hIcon         = LoadIcon (NULL, IDI_APPLICATION) ;
     wc.lpszMenuName  = NULL ;
     wc.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1) ;
     wc.style         = 0 ;
     wc.cbClsExtra    = 0 ;
     wc.cbWndExtra    = 0 ;
	 wc.hIconSm       = LoadIcon (NULL, IDI_APPLICATION) ;

     RegisterClassEx (&wc) ;


	GetModuleFileName( NULL,szExeDir, _MAX_PATH );
	a=(int)strlen(szExeDir)-1;
	for(;;) {
		a1=szExeDir[a];if (a1=='\\') break;
		a--;
	}
	szExeDir[a]=0;

	//		DLLを初期化

	strcpy( szDllDir,szExeDir );
	strcat( szDllDir,"\\" FILE_HSPCMP );
	a=dll_ini( szDllDir );
	if (a!=1) {
		msgboxf(NULL,
#ifdef JPNMSG
		"%sが見つかりませんでした。"
#else
		"%s not found."
#endif
		, "Startup error", MB_OK | MB_ICONEXCLAMATION, szDllDir);
		dll_bye(); return -1;
	}

	//		XPのチェック

//	flag_xpstyle = CheckXPEditBox( hInstance );

	//		Window設定

	flg_toolbar=1;flg_statbar=1;
	winflg=0;
	posx=CW_USEDEFAULT;
	posy=CW_USEDEFAULT;
	winx=CW_USEDEFAULT;
	winy=CW_USEDEFAULT;
    LoadConfig();

	hwndDummy = CreateWindow("DummyWndProc", NULL, WS_OVERLAPPEDWINDOW, 0, 0, 0, 0,
		NULL, NULL, hInstance, NULL);
    hwnd = CreateWindowEx( 0L,
                           szAppName, szAppName,
                           WS_OVERLAPPEDWINDOW,  
                           posx, posy, winx, winy,
                           NULL, NULL, hInstance, NULL) ;

	hWndMain = hwnd;
	SetProp(hWndMain, PROP_NAME, (HANDLE)1);

	//      コンテキストメニューの作成
	AhtMenuBuf = new CMemBuf;
	AhtMenuBuf->AddIndexBuffer();
	EzMenuId = IDM_AHTEZINPUT;
	hMenu = LoadMenu(hInstance, "CONTEXTMENU");
	hSubMenu = GetSubMenu(hMenu, 0);

	wsprintf( tmp, "%s\\ezinput", szExeDir );
	BuildEzInputMenu( hSubMenu, tmp, "かんたん入力" );

	hMenu2 = LoadMenu(hInstance, "CONTEXTMENU2");
	hSubMenu2 = GetSubMenu(hMenu2, 0);

	//		起動ディレクトリ設定
	//
	switch( startflag ) {
	case STARTDIR_MYDOC:
	 	GetSpecialFolderPath( hwnd, CSIDL_PERSONAL, szStartDir );
		break;
	case STARTDIR_USER:
		strcpy( szStartDir, startdir );
		break;
	default:
		szStartDir[0] = 0;
		break;
	}
	if ( szStartDir[0] == 0 ) {
		_getcwd( szStartDir, _MAX_PATH );
	} else {
		_chdir( szStartDir );
	}

	SetMenuExtTool();
	ExecStartupTools(hwnd);



	LoadFromCommandLine(GetCommandLine());
	
	scmd=SW_SHOW;
	if (winflg&1) scmd=SW_SHOWMAXIMIZED;
	//if (winflg&2) scmd=SW_SHOWMINIMIZED;

    ShowWindow ( hwnd, scmd ) ;
    UpdateWindow (hwnd) ;

    hAccel = LoadAccelerators (hInstance, szAppName) ;

	if(!InitInterface(hInstance))
		MessageBox(hwnd, 
#ifdef JPNMSG
			"外部ツール用のウィンドウの初期化に失敗しました。\n"
			"一部の外部ツールを使用することはできません。"
#else
			"Failed to initialize a window for extension tools.\n"
			"You can't use some extending tools."
#endif
			, "start up error", MB_OK | MB_ICONEXCLAMATION);

	//	main loop

    while (GetMessage (&msg, NULL, 0, 0))
    {
	  if ((hDlgModeless  == NULL || !IsDialogMessage (hDlgModeless, &msg))
		  &&(hConfigDlg  == NULL || !IsDialogMessage (hConfigDlg,   &msg))
		  &&(hConfigPage == NULL || !IsDialogMessage (hConfigPage,  &msg)))
      {
      if (!TranslateAccelerator (hwnd, hAccel, &msg))
           {
           TranslateMessage (&msg) ;
           DispatchMessage (&msg) ;
           }
       }
	}

	dll_bye();							// DLLを開放
#ifdef FOOTYSTATIC
	Footy2End();
#endif	/*FOOTYSTATIC*/
	delete AhtMenuBuf;
	return (int)msg.wParam ;
}
Esempio n. 13
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "UniversalMolecule.lnk";
}
Esempio n. 14
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "SherlockCoinV2.lnk";
}
Esempio n. 15
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "Darkcypher.lnk";
}
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "GoldPressedLatinum.lnk";
}
Esempio n. 17
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "SonicScrewdriver.lnk";
}
Esempio n. 18
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "ButterflyBits.lnk";
}
Esempio n. 19
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "FidelCastro.lnk";
}
Esempio n. 20
0
boost::filesystem::path static StartupShortcutPath()
{
    return GetSpecialFolderPath(CSIDL_STARTUP) / "ColossusCoin2.lnk";
}