summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_windows.cpp')
-rw-r--r--plugins/MirLua/src/m_windows.cpp10
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 },