Add Original SDK
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
[Project]
|
||||
FileName=ChangeTest.dev
|
||||
Name=ChangeTest
|
||||
UnitCount=2
|
||||
Type=1
|
||||
Ver=1
|
||||
ObjFiles=
|
||||
Includes=
|
||||
Libs=
|
||||
PrivateResource=ChangeTest_private.rc
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=../../import_libs/libDinkeyChange.a_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=
|
||||
ObjectOutput=
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=ChangeTest.exe
|
||||
HostApplication=
|
||||
Folders=
|
||||
CommandLine=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000
|
||||
|
||||
[Unit1]
|
||||
FileName=..\..\changetest.c
|
||||
CompileCpp=0
|
||||
Folder=ChangeTest
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[VersionInfo]
|
||||
Major=0
|
||||
Minor=1
|
||||
Release=1
|
||||
Build=1
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
AutoIncBuildNr=0
|
||||
|
||||
[Unit2]
|
||||
FileName=..\..\Visual Studio 5\DinkeyChange\ChangeTest.rc
|
||||
Folder=ChangeTest
|
||||
Compile=1
|
||||
Link=0
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
ChangeTest - sample code to call DinkeyChange.dll in Dev-C++
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
This project is written using Dev C++ 4.9.9.2 but should also work in other
|
||||
versions (for olders version you may have to create the project yourself).
|
||||
|
||||
The source files in the project are:
|
||||
|
||||
File name Folder Description
|
||||
changetest.c Samples\c main source code file for C
|
||||
changetest.h Samples\c contains some useful constants
|
||||
libDinkeyChange.a Samples\c\import_libs contains the function definitions for DinkeyChange.dll
|
||||
changetest.rc Samples\c\Visual Studio 5\DinkeyChange resource for main dialog
|
||||
|
||||
Note that the source paths are structured to minimise files. If you want to
|
||||
move this project the references to these files will probably be no longer valid.
|
||||
|
||||
The sample code contains 7 functions. Just use which ever functions are most
|
||||
appropriate and customise in your own way. The sample code is just a guide.
|
||||
As none of the parameters are sensitive then there is no need to implement
|
||||
strong security in calling DinkeyChange.
|
||||
|
||||
Note - you will not be able to debug your program after DinkeyChange has been called.
|
||||
Our strong anti-debug code will cause the debugger to throw an exception. However,
|
||||
if you do need to debug your code you can use our debug module for DinkeyChange:
|
||||
DinkeyChangeDebug.dll. So, you can use DinkeyChange.dll for your release build
|
||||
and DinkeyChangeDebug.dll for your debug build.
|
||||
|
||||
Note - if you are interested in creating the libDinkeyChange.a import library yourself
|
||||
then read the notes in the MinGW\Runtime\readme.txt file (Dev-C++ uses the minGW compiler).
|
||||
@@ -0,0 +1,59 @@
|
||||
[Project]
|
||||
FileName=DllTest.dev
|
||||
Name=DllTest
|
||||
UnitCount=1
|
||||
Type=1
|
||||
Ver=1
|
||||
ObjFiles=
|
||||
Includes=
|
||||
Libs=
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=../../import_libs/libdpwin32.a_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=
|
||||
ObjectOutput=
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=DllTest.exe
|
||||
HostApplication=
|
||||
Folders=
|
||||
CommandLine=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000
|
||||
|
||||
[Unit1]
|
||||
FileName=..\..\apitest.c
|
||||
CompileCpp=0
|
||||
Folder=DllTest
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[VersionInfo]
|
||||
Major=0
|
||||
Minor=1
|
||||
Release=1
|
||||
Build=1
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
AutoIncBuildNr=0
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
[Project]
|
||||
FileName=ObjTest.dev
|
||||
Name=ObjTest
|
||||
UnitCount=1
|
||||
Type=1
|
||||
Ver=1
|
||||
ObjFiles=
|
||||
Includes=
|
||||
Libs=
|
||||
PrivateResource=
|
||||
ResourceIncludes=
|
||||
MakeIncludes=
|
||||
Compiler=
|
||||
CppCompiler=
|
||||
Linker=../../object_modules/dpwin32_coff.obj_@@_
|
||||
IsCpp=0
|
||||
Icon=
|
||||
ExeOutput=
|
||||
ObjectOutput=
|
||||
OverrideOutput=0
|
||||
OverrideOutputName=ObjTest.exe
|
||||
HostApplication=
|
||||
Folders=
|
||||
CommandLine=
|
||||
UseCustomMakefile=0
|
||||
CustomMakefile=
|
||||
IncludeVersionInfo=0
|
||||
SupportXPThemes=0
|
||||
CompilerSet=0
|
||||
CompilerSettings=0000000000000000000000
|
||||
|
||||
[Unit1]
|
||||
FileName=..\..\apitest.c
|
||||
CompileCpp=0
|
||||
Folder=DllTest
|
||||
Compile=1
|
||||
Link=1
|
||||
Priority=1000
|
||||
OverrideBuildCmd=0
|
||||
BuildCmd=
|
||||
|
||||
[VersionInfo]
|
||||
Major=0
|
||||
Minor=1
|
||||
Release=1
|
||||
Build=1
|
||||
LanguageID=1033
|
||||
CharsetID=1252
|
||||
CompanyName=
|
||||
FileVersion=
|
||||
FileDescription=Developed using the Dev-C++ IDE
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
AutoIncBuildNr=0
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
Sample code to call dpwin32_coff.obj OR dpwin32.dll using Dev C++
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
This project is written using Dev C++ 4.9.9.2 but should also work in other
|
||||
versions (for olders version you may have to create the project yourself).
|
||||
|
||||
The source files in the project are:
|
||||
|
||||
File name Folder Description
|
||||
apitest.c Samples\c main source code file for C
|
||||
dris.h Samples\c contains the DRIS structure
|
||||
dpwin32_coff.obj Samples\c\object_modules static object modules e.g. dpwin32_coff.obj
|
||||
libdpwin32.a Samples\c\import_libs contains the function definitions for dpwin32.dll
|
||||
|
||||
Note that the source paths are structured to minimise files. If you want to
|
||||
move this project the references to these files will probably be no longer valid.
|
||||
|
||||
The ObjTest project links to the static runtime library module (e.g dpwin32_coff.obj)
|
||||
|
||||
The DllTest project uses the dynamic runtime library (e.g. dpwin32.dll).
|
||||
|
||||
The sample code contains 10 functions. You will not need to use all these
|
||||
functions in your code. Just use which ever functions are most appropriate
|
||||
and customise in your own way. The sample code is just a guide. You should
|
||||
implement the protection in a stronger way using the techniques described in
|
||||
the "Increasing your Protection" chapter of the manual.
|
||||
|
||||
Code marked with !!!! are places where you should customise the sample code so
|
||||
that it will work properly:
|
||||
|
||||
* Change the MY_SDSN value to the value of your SDSN
|
||||
* Change the MY_PRODCODE value to the Product Code in the dongle
|
||||
* Change the MyAlgorithm code (if you call a user algorithm)
|
||||
* Change the CryptDRIS code (if you encrypt the DRIS)
|
||||
* Change the CryptApiData (if you encrypt Data you send to our API)
|
||||
* Change the MyRWAlgorithm code (if encrypt Data you send to our API using the R/W algorithm)
|
||||
|
||||
You will also probably want to replace our error messages with your own.
|
||||
|
||||
Note - if you are link the static module dpwin32_coff.obj then you should protect your program.
|
||||
If you are linking to dpwin32.dll then you need to protect dpwin32.dll and *not* your program.
|
||||
Because your program is linked to the DLL it is protected. The protected DLL will need to be
|
||||
in the same folder as your compiled program for it to run correctly.
|
||||
|
||||
Note - once your program (or dpwin32.dll) is protected you will not be able to debug
|
||||
your program - after our API has been called. Our strong anti-debug code will cause
|
||||
the debugger to throw an exception. If you do want to debug your code then you can
|
||||
use our debug module: dpwin32_coff_debug.obj (or dpwin32debug.dll), but these should not be
|
||||
used for release. See readme.txt in samples\c for restrictions concerning the debug module.
|
||||
|
||||
Note - if you are interested in creating the libdpwin32.a import library yourself then
|
||||
read the notes in the MinGW\Runtime\readme.txt file (Dev-C++ uses the minGW compiler).
|
||||
|
||||
Reference in New Issue
Block a user