mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
revert moving smdll to rosrtl.
svn path=/trunk/; revision=13460
This commit is contained in:
parent
61c28f28b3
commit
7a4e07b567
14 changed files with 76 additions and 22 deletions
|
@ -58,7 +58,7 @@ DLLS_SHELLEXT = shellext
|
|||
DLLS = acledit aclui advapi32 advpack cabinet cards comctl32 crtdll comdlg32 d3d8thk dbghelp expat fmifs freetype \
|
||||
gdi32 gdiplus glu32 hid imagehlp imm32 iphlpapi kernel32 lzexpand mesa32 midimap mmdrv mpr msacm msafd \
|
||||
msgina msi msimg32 msvcrt20 msvideo mswsock netapi32 ntdll ole32 oleaut32 oledlg olepro32 opengl32 \
|
||||
packet psapi riched20 richedit rpcrt4 samlib secur32 setupapi shell32 shlwapi snmpapi syssetup \
|
||||
packet psapi riched20 richedit rpcrt4 samlib secur32 setupapi shell32 shlwapi smdll snmpapi syssetup \
|
||||
twain unicode user32 userenv version wininet winmm winspool ws2help ws2_32 wsock32 wshirda dnsapi \
|
||||
urlmon shdocvw dinput dinput8 dxdiagn devenum dsound $(DLLS_KBD) $(DLLS_CPL) $(DLLS_SHELLEXT)
|
||||
|
||||
|
|
|
@ -116,6 +116,7 @@ lib\setupapi\setupapi.dll 1
|
|||
lib\shdocvw\shdocvw.dll 1
|
||||
lib\shell32\shell32.dll 1
|
||||
lib\shlwapi\shlwapi.dll 1
|
||||
lib\smdll\smdll.dll 1
|
||||
lib\syssetup\syssetup.dll 1
|
||||
lib\twain\twain_32.dll 1
|
||||
lib\urlmon\urlmon.dll 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* $Id$ */
|
||||
#ifndef __ROSRTL_SM_API_H
|
||||
#define __ROSRTL_SM_API_H
|
||||
#ifndef __SM_API_H
|
||||
#define __SM_API_H
|
||||
|
||||
#define SM_API_PORT_NAME L"\\SmApiPort"
|
||||
#define SM_DBGSS_PORT_NAME L"\\DbgSsApiPort"
|
||||
|
@ -69,4 +69,4 @@ typedef struct _SM_PORT_MESSAGE
|
|||
#define SM_PORT_MESSAGE_SIZE (sizeof(SM_PORT_MESSAGE))
|
||||
|
||||
|
||||
#endif /* !def __ROSRTL_SM_API_H */
|
||||
#endif /* !def __SM_API_H */
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef _ROSRTL_SM_HELPER_H
|
||||
#ifndef _SM_HELPER_H
|
||||
|
||||
/*** DATA TYPES ******************************************************/
|
||||
|
||||
|
@ -43,4 +43,4 @@ SmExecuteProgram (IN HANDLE hSmApiPort,
|
|||
IN PUNICODE_STRING Pgm
|
||||
);
|
||||
|
||||
#endif /* ndef _ROSRTL_SM_HELPER_H */
|
||||
#endif /* ndef _SM_HELPER_H */
|
|
@ -33,12 +33,6 @@ FILE_OBJECTS = \
|
|||
file/sparse.o \
|
||||
file/path.o
|
||||
|
||||
SM_OBJECTS = \
|
||||
sm/compses.o \
|
||||
sm/connect.o \
|
||||
sm/execpgm.o \
|
||||
sm/testapi.o
|
||||
|
||||
RECMUTEX_OBJECTS = recmutex/recmutex.o
|
||||
|
||||
include $(PATH_TO_TOP)/config
|
||||
|
@ -52,8 +46,7 @@ TARGET_NAME = rosrtl
|
|||
TARGET_CFLAGS = -D__USE_W32API -Wall -Werror
|
||||
|
||||
TARGET_OBJECTS = $(THREAD_OBJECTS) $(MISC_OBJECTS) $(STRING_OBJECTS) \
|
||||
$(REGISTRY_OBJECTS) $(FILE_OBJECTS) $(RECMUTEX_OBJECTS) \
|
||||
$(SM_OBJECTS)
|
||||
$(REGISTRY_OBJECTS) $(FILE_OBJECTS) $(RECMUTEX_OBJECTS)
|
||||
|
||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
#include <rosrtl/smapi.h>
|
||||
#include <rosrtl/smhelper.h>
|
||||
#include <sm/api.h>
|
||||
#include <sm/helper.h>
|
||||
|
||||
NTSTATUS STDCALL
|
||||
SmCompleteSession (HANDLE hSmApiPort, HANDLE hSbApiPort, HANDLE hApiPort)
|
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
#include <rosrtl/smapi.h>
|
||||
#include <rosrtl/smhelper.h>
|
||||
#include <sm/api.h>
|
||||
#include <sm/helper.h>
|
||||
#include <pe.h>
|
||||
|
||||
/**********************************************************************
|
17
reactos/lib/smdll/dllmain.c
Normal file
17
reactos/lib/smdll/dllmain.c
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* $Id$
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS
|
||||
* FILE: lib/smdll/dllmain.c
|
||||
* PURPOSE: SM Helper Library
|
||||
*/
|
||||
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
|
||||
BOOL STDCALL DllMain(HANDLE hinstDll, DWORD fdwReason, LPVOID fImpLoad)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* EOF */
|
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
#include <rosrtl/smapi.h>
|
||||
#include <rosrtl/smhelper.h>
|
||||
#include <sm/api.h>
|
||||
#include <sm/helper.h>
|
||||
#include <string.h>
|
||||
|
||||
NTSTATUS STDCALL
|
34
reactos/lib/smdll/makefile
Normal file
34
reactos/lib/smdll/makefile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# $Id$
|
||||
|
||||
PATH_TO_TOP = ../..
|
||||
|
||||
TARGET_TYPE = dynlink
|
||||
|
||||
TARGET_NAME = smdll
|
||||
|
||||
TARGET_SDKLIBS = ntdll.a
|
||||
|
||||
TARGET_CFLAGS = -I./include -Wall -Werror
|
||||
|
||||
# require os code to explicitly request A/W version of structs/functions
|
||||
TARGET_CFLAGS += -D_DISABLE_TIDENTS
|
||||
|
||||
TARGET_LFLAGS = -nostartfiles -nostdlib
|
||||
|
||||
#TARGET_BASE =
|
||||
|
||||
TARGET_OBJECTS = \
|
||||
dllmain.o \
|
||||
connect.o \
|
||||
execpgm.o \
|
||||
compses.o
|
||||
|
||||
DEP_OBJECTS = $(TARGET_OBJECTS)
|
||||
|
||||
include $(PATH_TO_TOP)/rules.mak
|
||||
|
||||
include $(TOOLS_PATH)/helper.mk
|
||||
|
||||
include $(TOOLS_PATH)/depend.mk
|
||||
|
||||
# EOF
|
|
@ -1,6 +1,6 @@
|
|||
$Id$
|
||||
|
||||
This is a helper library to talk to the ReactOS session manager (SM).
|
||||
This is SMDLL: a helper library to talk to the ReactOS session manager (SM).
|
||||
|
||||
It should be linked in the following components:
|
||||
|
5
reactos/lib/smdll/smdll.def
Normal file
5
reactos/lib/smdll/smdll.def
Normal file
|
@ -0,0 +1,5 @@
|
|||
LIBRARY SMDLL.DLL
|
||||
EXPORTS
|
||||
SmCompleteSession@12
|
||||
SmConnectApiPort@16
|
||||
SmExecPgm@8
|
4
reactos/lib/smdll/smdll.rc
Normal file
4
reactos/lib/smdll/smdll.rc
Normal file
|
@ -0,0 +1,4 @@
|
|||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS SM Helper\0"
|
||||
#define REACTOS_STR_INTERNAL_NAME "smdll.dll\0"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "smdll.dll\0"
|
||||
#include <reactos/version.rc>
|
|
@ -1,7 +1,7 @@
|
|||
/* $Id$ */
|
||||
#define NTOS_MODE_USER
|
||||
#include <ntos.h>
|
||||
#include <rosrtl/smapi.h>
|
||||
#include <sm/api.h>
|
||||
|
||||
VOID STDCALL SmPrintPortMessage (PSM_PORT_MESSAGE SmMessage)
|
||||
{
|
Loading…
Reference in a new issue