|
 |
|
ASP/Registry is a server side COM component that helps web developers to encapsulate access to the Windows system registry in a web application.
- Easy to use and powerful registry management operations (Allow you to create, read, write, move and delete a key in the windows registry).
- Export parts of the registry into a *.REG file, Import *.REG file.
- Connect to manage the registry of local server or any other server on the network.
|
This component is shareware version without limitations on functionality or time.You can fully develop and test your application before purchasing this product, the only limitation is component works when client requests from the IP 127.0.0.1 or ServerIP, No requests from other IP addresses will be served. If you want to remove limitations then you have to register it for US$25.

ASP/Registry Component |
CH.2 |
Installation |
for zip file:
- Login as Administrator or Power User.
- Unzip the aspRegistry.zip file extract to a directory.
- copy register.bat and nonnoi_ASPRegistry.dll to the WINNT\SYSTEM32 (or WINDOWS\SYSTEM on Win95/98 or WINDOWS\SYSTEM32 on WinXP Home) directory
- run register.bat
- Done!
for setup(.exe) file: (Recommended !)
- Login as Administrator or Power User.
- run setup_aspRegistry.exe
- Follow instructions of the installer
- Done!
ASP/Registry Component |
CH.3 |
Reference |
RootKey : String
Use RootKey to determine the hierarchy of subkeys an application can access. By default, RootKey is set to HKEY_CURRENT_USER.
RootKey should be one of the following values:
"HKEY_LOCAL_MACHINE" |
or |
"HKLM" |
"HKEY_CURRENT_USER" |
or |
"HKCU" |
"HKEY_CLASSES_ROOT" |
or |
"HKCR" |
"HKEY_CURRENT_CONFIG" |
or |
"HKCC" |
"HKEY_USERS" |
or |
"HKUS" |
"HKEY_PERFORMANCE_DATA" |
or |
"HKPD" |
"HKEY_DYN_DATA" |
or |
"HKDD" |
Example :
Obj.RootKey = "HKEY_CURRENT_USER"
KeyExists (Key: String) : Boolean
Call KeyExists to determine if a key of a specified name exists.
Example :
if Obj.KeyExists ("Software\Nonnoi\Forder\") Then Response.write "Found!"
HasSubKeys (Key: String) : Boolean
Call HasSubKeys to determine if the current key has any subkeys.
Example :
if Obj.HasSubKeys ("Software\Nonnoi\Forder\") Then Response.write "Found SubKey!"
MoveKey (OleName: String, NewName: String, Delete: Boolean)
Call MoveKey to copy or move an existing key, its subkeys, and data values to a different location.
Delete specifies whether to delete the old key after the copy operation.
Example :
' Move key, its subkeys, and data values from "Software\Nonnoi\Forder\" to "Software\Nonnoi\Forder2\"
Obj.HasSubKeys ("Software\Nonnoi\Forder\","Software\Nonnoi\Forder2\",True)
' Copy key, its subkeys, and data values from "Software\Nonnoi\Forder2\" to "Software\Nonnoi\Forder3\"
Obj.HasSubKeys ("Software\Nonnoi\Forder2\","Software\Nonnoi\Forder3\",False)
CreateKey (Key: String) : Boolean
Use CreateKey to add a new key to the registry.
Example :
if Obj.CreateKey ("Software\Nonnoi\Forder4\") Then Response.write "Created new key!"
DeleteKey (Key: String) : Boolean
Call DeleteKey to remove a specified key and its associated data, from the registry.
Example :
if Obj.DeleteKey ("Software\Nonnoi\Forder4\") Then Response.write "Deleted key!"
DeleteValue (Key: String) : Boolean
Call DeleteValue to remove a specific data value.
Example :
if Obj.DeleteValue ("Software\Nonnoi\Forder4\Test") Then Response.write "Deleted Value!"
ExportKeyToFile (Keyname: String, FileName: String)
Call ExportKeyToFile to export a specified key to file.
Example :
Obj.ExportKeyToFile ("Software\Nonnoi\Forder4","c:\mydata.reg")
ImportKeyFromFile (FileName: String)
Call ImportKeyFromFile to import a specified key from file.
Example :
Obj.ImportKeyFromFile ("c:\mydata.reg")
ExportKey (Keyname: String)
Call ExportKey to export a specified key to browser.
Example :
Obj.ExportKey ("Software\Nonnoi\Forder4")
GetDataType (Keyname: String)
Call GetDataType to determine the data type of a data value.
DataType should be one of the following values:
0 |
|
REG_NONE |
1 |
|
REG_SZ |
2 |
|
REG_EXPAND_SZ |
3 |
|
REG_BINARY |
4 |
|
REG_DWORD |
5 |
|
REG_DWORD_BIG_ENDIAN |
6 |
|
REG_LINK |
7 |
|
REG_MULTI_SZ |
8 |
|
REG_RESOURCE_LIST |
9 |
|
REG_FULL_RESOURCE_DESCRIPTOR |
10 |
|
REG_RESOURCE_REQUIREMENTS_LIST |
Example :
DType = Obj.GetDataType ("Software\Nonnoi\Forder4\Test")
Value (Keyname: String, ValueName: String)
Call Value to read/write a value from a specified data value.
Example :
' Write Data
Obj.Value ("Software\Nonnoi\Forder4","Test") = 1455
Obj.Value ("Software\Nonnoi\Forder4","Test2") = "Home4"
' Read Data
TestData = Obj.Value ("Software\Nonnoi\Forder4","Test")
Test2Data = Obj.Value ("Software\Nonnoi\Forder4","Test2")
GetString (Name: String)
Call GetString to read a string value from a specified data value.
Example :
DTest = Obj.GetString ("Software\Nonnoi\Forder4\Test")
GetMultiString (Name: String)
Call GetMultiString to read multiple strings value from a specified data value.
Example :
DTest = Obj.GetMultiString ("Software\Nonnoi\Forder4\Test")
GetExpandString (Name: String)
Call GetMultiString to read expand string value from a specified data value.
Example :
DTest = Obj.GetMultiString ("Software\Nonnoi\Forder4\Test")
GetDWORD (Name: String)
Call GetDWORD to read a integer value from a specified data value.
Example :
DTestd = Obj.GetDWORD ("Software\Nonnoi\Forder4\Testd")
GetBinary (Name: String)
Call GetBinary to read binary value from a specified data value.
SetString (Name: String, Value: String)
Call SetString to write a string value to a specified data value.
Example :
Obj.SetString "Software\Nonnoi\Forder4\Test", "My Test Data"
SetMultiString (Name: String, Value)
Call SetString to write multiple strings value to a specified data value.
Example :
Obj.SetString "Software\Nonnoi\Forder4\Test", "My Test Data"&Chr(0)&"My Test Data 2"
SetExpandString (Name: String, Value)
Call SetExpandString to write a expand string value to a specified data value.
Example :
Obj.SetExpandString "Software\Nonnoi\Forder4\Test", "%SystemRoot%\mydata"
SetDWORD (Name: String, Value)
Call SetDWORD to write a integer value to a specified data value.
Example :
Obj.SetDWORD "Software\Nonnoi\Forder4\Test", 123456
SetBinary (Name: String, Value)
Call SetBinary to write a binary value to a specified data value.
Connect (MachineName: String): Boolean
Connect to remote computer name. Set MachineName = "" for localhost.
Example :
if Obj.Connect ("\\MySever") Then
Money = Obj.GetString("Software\Nonnoi\Data\Form\Money")
Obj.Disconnect
End If
Disconnect (MachineName: String): Boolean
Disconnect from remote computer name.
Example :
if Obj.Connect ("\\MySever") Then
Money = Obj.GetString("Software\Nonnoi\Data\Form\Money")
Obj.Disconnect
End If
EnumKeys (Keyname: String)
Call EnumKeys to determine the names of all subkeys belonging to the
Keyname key.
EnumValues (Keyname: String)
Call EnumValues to determine the names of all data values associated with the
Keyname key.
RegisterName
if you already registered this product, input your name (company name or customer name) here.
** you must set this value before call other method or properties.
RegisterKey
if you already registered this product, input your registration key here.
** you must set this value before call other method or properties.
ASP/Registry Component |
CH.4 |
Example |
ASP : Write and Read data
<%
Set Obj = Server.CreateObject("nonnoi_ASPRegistry.ASPRegistry")
Obj.RootKey = "HKEY_CURRENT_USER"
if Obj.SetString ("Software\Nonnoi\Forder\Test","123456")
then response.write "Write String...OK"
response.write "Read String Data : "
response.write Obj.GetString ("Software\Nonnoi\Forder\Test")
Set Obj = nothing
%>
ASP : Connect to other server
<%
Set Obj = Server.CreateObject("nonnoi_ASPRegistry.ASPRegistry")
Obj.RootKey = "HKEY_CURRENT_USER"
if Obj.Connect("\\webserver01")
then
Money = Obj.GetString("Software\Nonnoi\Data\Form\Money")
Response.write Money
Obj.Disconnect
end if
set Obj = nothing
%>
ASP (Registered User):
<%
Set Obj = Server.CreateObject("nonnoi_ASPRegistry.ASPRegistry")
Obj.RegisterName = "Nonnoi"
Obj.RegisterKey = "0123456-789"
Obj.RootKey = "HKEY_CURRENT_USER"
if Obj.SetString ("Software\Nonnoi\Forder\Test","123456")
then response.write "Write String...OK"
response.write "Read String Data : "
response.write Obj.GetString ("Software\Nonnoi\Forder\Test")
set Obj = nothing
%>
ASP/Registry Component |
CH.5 |
Update & Order |
Click here for prices and discount information.
Click here for product news & information.
Click here for product support or any comment.