Introduction:
- WinRadius.dll is a
DLL that provides WIN32 APIs for your application. Its
function is just the same as WinRadius
standard version.
- With those WIN32 APIs, you can
embed WinRadius to your application easily. You can use
those WIN32 APIs with all kinds Windows developing tools,
such as C, C++, VB, VB.net, and so on.
- This APIs can be used ONLY for
developing purpose. If you want to distribute our APIs
with your application, you need purchase our license.
APIs declaration:
- C style:
BOOL RadiusStart(char* lpPath)
BOOL RadiusStop()
int RadiusGetVersion()
int RadiusGetUserCount()
int RadiusGetMaxUserCount()
BOOL RadiusRefreshUsers()
BOOL RadiusClearAllSessions()
BOOL RadiusRecovery()
BOOL RadiusInsertUser(char* lpUserName, char* lpPassword, char* lpGroup,
char* lpAddr, int iCash, char* lpExpoiry, char* lpMethod, char* lpBillType)
BOOL RadiusRemoveUser(char* lpUserName)
BOOL RadiusModifyUser(char* lpUserName, char*
lpFieldName, char* lpValue)
BOOL RadiusGetVendorName(char* lpVendorName, int iBufferSize)
BOOL RadiusSetVendorKey(int lKey)
- VB style:
Public Declare Function RadiusStart Lib "WinRadius.dll" (ByVal lpPath As String) As Long
Public Declare Function RadiusStop Lib "WinRadius.dll" () As Long
Public Declare Function RadiusGetVersion Lib "WinRadius.dll" () As Long
Public Declare Function RadiusGetUserCount Lib "WinRadius.dll" () As Long
Public Declare Function RadiusGetMaxUserCount Lib "WinRadius.dll" () As Long
Public Declare Function RadiusRefreshUsers Lib "WinRadius.dll" () As Long
Public Declare Function RadiusClearAllSessions Lib "WinRadius.dll" () As Long
Public Declare Function RadiusRecovery Lib "WinRadius.dll" () As Long
Public Declare Function RadiusInsertUser Lib "WinRadius.dll" (ByVal lpUserName As String, ByVal lpPassword As String, ByVal lpGroup As String, ByVal lpAddr As String, ByVal iCash As Long, ByVal lpExpiry As String, ByVal lpMethod As String, ByVal lpBillType As String) As Long
Public Declare Function RadiusRemoveUser Lib "WinRadius.dll" (ByVal lpUserName As String) As Long
Public Declare Function RadiusModifyUser Lib "WinRadius.dll" (ByVal lpUserName As String, ByVal lpFieldName As String, ByVal lpValue As String) As Long
Public Declare Function RadiusGetVendorName Lib "WinRadius.dll" (ByVal lpVendorName As String, ByVal iBufferSize As Long) As Long
Public Declare Function RadiusSetVendorKey Lib "WinRadius.dll" (ByVal lKey As Long) As Long
APIs description:
- RadiusStart : Start
WinRadius service.
lpPath : The path of WinRadius.config, for
example, "C:/YourPath" means "C:/YourPath/WinRadius.config".
Return value: If succeed, return TRUE, else return FALSE.
- RadiusStop : Stop WinRadius
service.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusGetVersion : Get the
version number of this WinRadius.dll.
Return value: Return the version number of this WinRadius.dll,
for example, 120 means 1.20
version.
- RadiusGetUserCount : Get the
user count of this WinRadius.dll current
loaded from the database.
Return value: Return the user count of this WinRadius.dll
current loaded from the database.
- RadiusGetMaxUserCount : Get
the max user count of this WinRadius.dll supported.
Return value: Return the max user number of this WinRadius.dll
supported.
- RadiusRefreshUsers : Reload
user information from database.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusClearAllSessions:
Clear all active sessions of WinRadius. This function is
useful when your NAS rebooted.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusRecovery: Import
backup data to the database of WinRadius.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusInsertUser: Insert a
new user to the database of WinRadius.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusRemoveUser: Remove a
user from the database of WinRadius.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusModifyUser: Modify a
user's information at the database of WinRadius. The
available l pFieldName values is listed on
WinRadius standard version.
Return value: If succeed, return TRUE, else return FALSE.
- RadiusGetVendorName:
Get the vendor's name. The maximum buffer size is 256.
Return value: If succeed, return TRUE, else return FALSE.
The vendor's name, such as "www.ITconsult2000.com",
will be returned at lpVendorName.
- RadiusSetVendorKey:
Set the vendor's key to make this version workable. You
shall get the vendor key from us.
Return value: If succeed, return TRUE, else return FALSE.
Usages:
FAQ:
- Why my application cannot find WinRadius.dll
?
Please copy WinRadius.dll to your windows'
system path where all kinds of DLL is placed, such as
"C:/windows/system".
- Why I cannot use a new version of WinRadius.dll
to replace the old version?
Please stop the application that uses WinRadius.dll
and restart your computer, then everything will be OK.
- Why WinRadius.dll was
still in the memory after I closed my application?
Please call RadiusStop to shutdown WinRadius
service before closing your application if you have
called RadiusStart.
More information