diff options
| author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 20:06:32 +0000 |
|---|---|---|
| committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 20:06:32 +0000 |
| commit | 7540dae59505b5c5d38507a05116c493cce628cb (patch) | |
| tree | 8e27782c0a968ebd2c641d1eb241f2de6f8fca84 /plugins/MirLua/src/m_windows.cpp | |
| parent | cc5d3042679c7afbbf510e4f3e8e9937b2ce0233 (diff) | |
MirLua: metatable fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15997 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_windows.cpp')
| -rw-r--r-- | plugins/MirLua/src/m_windows.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_windows.cpp b/plugins/MirLua/src/m_windows.cpp index 160f632974..b90b1d808f 100644 --- a/plugins/MirLua/src/m_windows.cpp +++ b/plugins/MirLua/src/m_windows.cpp @@ -72,6 +72,8 @@ static int lua_MessageBox(lua_State *L) return 1;
}
+/***********************************************/
+
static int lua_ShellExecute(lua_State *L)
{
ptrT command(mir_utf8decodeT(lua_tostring(L, 1)));
@@ -84,6 +86,8 @@ static int lua_ShellExecute(lua_State *L) return 0;
}
+/***********************************************/
+
static int lua_FindIterator(lua_State *L)
{
HANDLE hFind = lua_touserdata(L, lua_upvalueindex(1));
@@ -166,6 +170,8 @@ static int lua_GetKeyState(lua_State *L) return 1;
}
+/***********************************************/
+
static int lua_GetIniValue(lua_State *L)
{
ptrT path(mir_utf8decodeT(luaL_checkstring(L, 1)));
@@ -221,6 +227,8 @@ static int lua_DeleteIniValue(lua_State *L) return 1;
}
+/***********************************************/
+
static int lua_GetRegValue(lua_State *L)
{
HKEY hRootKey = (HKEY)lua_touserdata(L, 1);
@@ -360,6 +368,8 @@ static int lua_DeleteRegValue(lua_State *L) return 1;
}
+/***********************************************/
+
static luaL_Reg winApi[] =
{
{ "MessageBox", lua_MessageBox },
|
