Native DLL stub and SOURCES

Hi,

I’ve write NT native application (cross-platform CD/DVD
recording/mastering toolkit, just NT native port if you care what’s
is…). Works fine. Now I’d like to make a DLL from it (not happy with the
idea to distribute the source code). For Win32, NT driver and Linux it’s
not a problem (DLL, EXPORT_DRIVER, SO), but for NT native I’m not able to
create a DLL - just do not know what to put into SOURCES file. Is there
any sample? ReactOS source code did not help much as it contains SOURCES
for particual types of native DLLs (like ntdll.dll) and I need just
generic one. Any ideas?

Thanks a lot for help!

Anton Kolomyeytsev

Finally discovered what the problem was… Need to set USE_NTDLL to 1. So
here is the sample. Maybe somebody will need it (no answers here…)

Anton

This is SOURCES to build TARGET_NATIVE that uses SPTI (SCSI

Pass-Through Interface) SCSI transport

C_DEFINES=$(C_DEFINES) -D__TARGET_NATIVE__ -D__NEED_ERROR_TEXT__
-D__NEED_IMPEX__

#C_DEFINES=$(C_DEFINES) -D__TARGET_NATIVE__ -D__NEED_ERROR_TEXT__
-D__NEED_TRACE_TEXT__ -D__NEED_IMPEX__

TARGETNAME=cdb_Native

TARGETPATH=obj

TARGETTYPE=DYNLINK

UMTYPE=nt

UMENTRY=NtProcessStartup

INCLUDES=$(DDK_INC_PATH)

TARGETLIBS=$(DDK_LIB_PATH)\ntoskrnl.lib

USE_NTDLL=1

SOURCES=cdb_Native.c …\cdb.cpp …\cdb_Debug.cpp …\cdb_OsWrap.cpp
…\Ccdb_Core.cpp …\Ccdb_Base.cpp …\Ccdb_Device.cpp \
…\Ccdb_SpinLock.cpp …\Ccdb_CacheObject.cpp …\Ccdb_CacheManager.cpp

Hi,

I’ve write NT native application (cross-platform CD/DVD
recording/mastering toolkit, just NT native port if you care what’s
is…). Works fine. Now I’d like to make a DLL from it (not happy with the
idea to distribute the source code). For Win32, NT driver and Linux it’s
not a problem (DLL, EXPORT_DRIVER, SO), but for NT native I’m not able to
create a DLL - just do not know what to put into SOURCES file. Is there
any sample? ReactOS source code did not help much as it contains SOURCES
for particual types of native DLLs (like ntdll.dll) and I need just
generic one. Any ideas?

Thanks a lot for help!

Anton Kolomyeytsev