Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int FindWindow_l(lua_State *L)
- {
- int i_count = lua_gettop(L);
- if (i_count >= 1)
- {
- LPCSTR lpWindowName = (LPCSTR)lua_tostring(L, 1);
- LPCSTR lpClassName = 0;
- if (i_count == 2) lpClassName = (LPCSTR)lua_tostring(L, 2);
- HWND Window = FindWindowA(lpClassName, lpWindowName);
- lua_pushnumber(L, (int)Window);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement