Advertisement
Guest User

Untitled

a guest
Jan 10th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. int FindWindow_l(lua_State *L){
  2.     int i_count = lua_gettop(L);
  3.     if(i_count == 2){
  4.         LPCSTR lpClassName  = (LPCSTR)lua_tostring(L, 1);
  5.         LPCSTR lpWindowName = (LPCSTR)lua_tostring(L, 2);
  6.  
  7.         HWND Window = FindWindowA(lpClassName, lpWindowName);
  8.         lua_pushnumber(L, (int)Window);
  9.     }
  10.     return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement