diff --git a/cpp/list/dev/copy.bat b/cpp/list/dev/copy.bat new file mode 100644 index 0000000..cbff225 --- /dev/null +++ b/cpp/list/dev/copy.bat @@ -0,0 +1 @@ +copy list.exe ..\..\..\java\native\ \ No newline at end of file diff --git a/cpp/list/dev/copy.mak b/cpp/list/dev/copy.mak new file mode 100644 index 0000000..5459618 --- /dev/null +++ b/cpp/list/dev/copy.mak @@ -0,0 +1,2 @@ +all-after: + copy.bat \ No newline at end of file diff --git a/cpp/list/dev/list.dev b/cpp/list/dev/list.dev new file mode 100644 index 0000000..b9b5046 --- /dev/null +++ b/cpp/list/dev/list.dev @@ -0,0 +1,59 @@ +[Project] +FileName=list.dev +Name=list +UnitCount=1 +Type=1 +Ver=1 +ObjFiles= +Includes= +Libs= +PrivateResource= +ResourceIncludes= +MakeIncludes=copy.mak +Compiler= +CppCompiler= +Linker= +IsCpp=1 +Icon= +ExeOutput= +ObjectOutput= +OverrideOutput=0 +OverrideOutputName=List.exe +HostApplication= +Folders= +CommandLine= +UseCustomMakefile=0 +CustomMakefile= +IncludeVersionInfo=0 +SupportXPThemes=0 +CompilerSet=0 +CompilerSettings=0000000000000000000000 + +[Unit1] +FileName=..\main.cpp +CompileCpp=1 +Folder= +Compile=1 +Link=1 +Priority=1000 +OverrideBuildCmd=0 +BuildCmd= + +[VersionInfo] +Major=0 +Minor=1 +Release=1 +Build=1 +LanguageID=1033 +CharsetID=1252 +CompanyName= +FileVersion= +FileDescription=Developed using the Dev-C++ IDE +InternalName= +LegalCopyright= +LegalTrademarks= +OriginalFilename= +ProductName= +ProductVersion= +AutoIncBuildNr=0 + diff --git a/cpp/list/main.cpp b/cpp/list/main.cpp new file mode 100644 index 0000000..dd450d7 --- /dev/null +++ b/cpp/list/main.cpp @@ -0,0 +1,21 @@ +#include +#include +#include + +using namespace std; + +BOOL CALLBACK EnumProc(HWND hWnd, LPARAM lParam); + +int main() { + EnumWindows(EnumProc, 0); + int a; + return 0; +} + +BOOL CALLBACK EnumProc(HWND hWnd, LPARAM lParam) { + TCHAR title[500]; + ZeroMemory(title, sizeof(title)); + GetWindowText(hWnd, title, sizeof(title) / sizeof(title[0])); + cout << hWnd << endl << title << endl; + return TRUE; +} diff --git a/java/native/list.exe b/java/native/list.exe new file mode 100644 index 0000000..68dbc51 Binary files /dev/null and b/java/native/list.exe differ