sepehrEZ
كاربر دو ستاره
ارسالها: 80
موضوعها: 9
تاریخ عضویت: مرداد ۱۳۸۶
تشکرها : 14
( 25 تشکر در 15 ارسال )
|
|
۲۷-دى-۱۳۸۶, ۰۱:۳۵:۰۹ |
|
تشکر شده توسط : |
|
zacaria
كاربر دو ستاره
ارسالها: 212
موضوعها: 38
تاریخ عضویت: آذر ۱۳۸۶
تشکرها : 11
( 98 تشکر در 59 ارسال )
|
RE: ویرایش ریجستری از تریق ویژوال بیسیک
دوست من بهتره از توابع API استفاده کنی
Public Const ERROR_SUCCESS = 0&
Public Const REG_OPTION_VOLATILE = 1
Public Const REG_OPTION_NON_VOLATILE = 0
Public Const HKEY_CURRENT_USER = &H80000001
Public Const HKEY_CLASSES_ROOT = &H80000000
Public Const HKEY_DYN_DATA = &H80000006
Public Const HKEY_USERS = &H80000003
Public Const KEY_WRITE = &H20006
Public Const KEY_READ = &H20019
Public Const KEY_ALL_ACCESS = &HF003F
Public Const REG_BINARY = 3
Public Const REG_DWORD = 4
Public Const REG_SZ = 1
Public Const REG_EXPAND_SZ = 2
Public Type SECURITY_ATTRIBUTES
nLenght As Long
IpSecutityDescriptor As Long
bInheritHandle As Long
End Type
Public Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Public Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hkey As Long, ByVal lpValueName As String) As Long
Public Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias "RegCreateKeyExA" (ByVal hkey As Long, ByVal lpSubKey As String, ByVal Reserved As Long, ByVal lpClass As String, ByVal dwOptions As Long, ByVal samDesired As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES, phkResult As Long, lpdwDisposition As Long) As Long
Public Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hkey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long ' Note that if you declare the lpData parameter as String, you must pass it By Value.
Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hkey As Long) As Long
و پاسی از شب را از خواب برخیز، قرآن و نماز بخوان! این یک وظیفه اضافی برای توست، امید آنکه پروردگارت تو را به مقامی در خور ستایش برانگیزد(سوره اسراء آیه79)
|
|
۰۵-بهمن-۱۳۸۶, ۱۷:۳۱:۵۹ |
|
تشکر شده توسط : |
|