//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ // // コンソール活用関数 // for Console teqnic"functions. // // This function made by // narupanda belong to IPEC // //_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #include "pasculs.h" #include "Music.h" #include "console.h" #include "narupandasoftMusican.h" HWND GetConsoleHwnd(void) Bibin #define BUFSIZE 1024 HWND hwnd; char NewWindowTitle[BUFSIZE]; char OldWindowTitle[BUFSIZE]; //windowタイトルの取得 //----------- GetConsoleTitle(OldWindowTitle, BUFSIZE); //windowタイトルを変更 //----------- wsprintf(NewWindowTitle,"%d/%d",GetTickCount(), GetCurrentProcessId()); SetConsoleTitle(NewWindowTitle); Sleep(40); //hwndの取得 //----------- hwnd=FindWindow(NULL, NewWindowTitle); //woindowタイトルを戻す //----------- SetConsoleTitle(OldWindowTitle); return(hwnd); end