From 595488f92e55dd49de72db04676fd75b928023c6 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 18 May 2013 14:41:18 +0000 Subject: [PATCH] [IERNONCE] * Add to trunk, with a stubbed RunonceEx. Brought to you by Robert Naumann. CORE-7194 #resolve #comment Committed in r59035. Cheers ;) svn path=/trunk/; revision=59035 --- reactos/dll/win32/CMakeLists.txt | 1 + reactos/dll/win32/iernonce/CMakeLists.txt | 10 ++++++ reactos/dll/win32/iernonce/iernonce.c | 44 +++++++++++++++++++++++ reactos/dll/win32/iernonce/iernonce.spec | 1 + 4 files changed, 56 insertions(+) create mode 100644 reactos/dll/win32/iernonce/CMakeLists.txt create mode 100644 reactos/dll/win32/iernonce/iernonce.c create mode 100644 reactos/dll/win32/iernonce/iernonce.spec diff --git a/reactos/dll/win32/CMakeLists.txt b/reactos/dll/win32/CMakeLists.txt index 4f082d3c448..c62f6a38724 100644 --- a/reactos/dll/win32/CMakeLists.txt +++ b/reactos/dll/win32/CMakeLists.txt @@ -50,6 +50,7 @@ add_subdirectory(httpapi) add_subdirectory(iccvid) add_subdirectory(icmp) add_subdirectory(ieframe) +add_subdirectory(iernonce) add_subdirectory(imaadp32.acm) add_subdirectory(imagehlp) add_subdirectory(imm32) diff --git a/reactos/dll/win32/iernonce/CMakeLists.txt b/reactos/dll/win32/iernonce/CMakeLists.txt new file mode 100644 index 00000000000..c06f2283536 --- /dev/null +++ b/reactos/dll/win32/iernonce/CMakeLists.txt @@ -0,0 +1,10 @@ + +spec2def(iernonce.dll iernonce.spec) + +add_library(iernonce SHARED + iernonce.c + ${CMAKE_CURRENT_BINARY_DIR}/iernonce.def) + +set_module_type(iernonce win32dll UNICODE) +add_importlibs(iernonce msvcrt kernel32 ntdll) +add_cd_file(TARGET iernonce DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/iernonce/iernonce.c b/reactos/dll/win32/iernonce/iernonce.c new file mode 100644 index 00000000000..15a84af91b7 --- /dev/null +++ b/reactos/dll/win32/iernonce/iernonce.c @@ -0,0 +1,44 @@ +/* + * PROJECT: ReactOS system libraries + * LICENSE: GPL - See COPYING in the top level directory + * FILE: dll\win32\iernonce\iernonce.c + * PURPOSE: DLL for RunOnceEx Keys + * PROGRAMMERS: Copyright 2013 Robert Naumann + */ + + +#define WIN32_NO_STATUS +#include +#include +#include +#include +#include +#include + +#define NDEBUG +#include + +HINSTANCE hInstance; + +BOOL +WINAPI +DllMain(HINSTANCE hinstDLL, + DWORD dwReason, + LPVOID reserved) +{ + switch (dwReason) + { + case DLL_PROCESS_ATTACH: + break; + case DLL_PROCESS_DETACH: + hInstance = hinstDLL; + break; + } + + return TRUE; +} + +VOID WINAPI RunOnceExProcess(HWND hwnd, HINSTANCE hInst, LPCSTR path, int nShow) +{ + DPRINT1("RunOnceExProcess() not implemented\n"); +} diff --git a/reactos/dll/win32/iernonce/iernonce.spec b/reactos/dll/win32/iernonce/iernonce.spec new file mode 100644 index 00000000000..808989a74af --- /dev/null +++ b/reactos/dll/win32/iernonce/iernonce.spec @@ -0,0 +1 @@ +@ stdcall RunOnceExProcess(ptr ptr str long) \ No newline at end of file