方便的实现将程序设为服务

时间:2013-11-16 07:17:45
【文件属性】:

文件名称:方便的实现将程序设为服务

文件大小:20KB

文件格式:RAR

更新时间:2013-11-16 07:17:45

将程序设为服务

Option Explicit Public Const REG_NONE = 0 ' No value type Public Const REG_SZ = 1 ' Unicode nul terminated string Public Const REG_EXPAND_SZ = 2 ' Unicode nul terminated string Public Const REG_BINARY = 3 ' Free form binary Public Const REG_DWORD = 4 ' 32-bit number Public Const REG_DWORD_LITTLE_ENDIAN = 4 ' 32-bit number (same as REG_DWORD) Public Const REG_DWORD_BIG_ENDIAN = 5 ' 32-bit number Public Const REG_LINK = 6 ' Symbolic Link (unicode) Public Const REG_MULTI_SZ = 7 ' Multiple Unicode strings Public Const REG_RESOURCE_LIST = 8 ' Resource list in the resource map Public Const REG_FULL_RESOURCE_DESCRIPTOR = 9 ' Resource list in the hardware description Public Const REG_RESOURCE_REQUIREMENTS_LIST = 10 Public Enum hKeyNames HKEY_CLASSES_ROOT = &H80000000 HKEY_CURRENT_USER = &H80000001 HKEY_LOCAL_MACHINE = &H80000002 HKEY_USERS = &H80000003 HKEY_CURRENT_CONFIG = &H80000005 End Enum Public Const ERROR_SUCCESS = 0& Public Const ERROR_NONE = 0 Public Const ERROR_BADDB = 1 Public Const ERROR_BADKEY = 2 Public Const ERROR_CANTOPEN = 3 Public Const ERROR_CANTREAD = 4 Public Const ERROR_CANTWRITE = 5 Public Const ERROR_OUTOFMEMORY = 6 Public Const ERROR_ARENA_TRASHED = 7 Public Const ERROR_ACCESS_DENIED = 8 Public Const ERROR_INVALID_PARAMETERS = 87 Public Const ERROR_NO_MORE_ITEMS = 259 Private Const SYNCHRONIZE = &H100000 Private Const STANDARD_RIGHTS_READ = &H20000 Private Const STANDARD_RIGHTS_WRITE = &H20000 Private Const STANDARD_RIGHTS_EXECUTE = &H20000 Private Const STANDARD_RIGHTS_REQUIRED = &HF0000 Private Const STANDARD_RIGHTS_ALL = &H1F0000 Private Const KEY_QUERY_VALUE = &H1 Private Const KEY_SET_VALUE = &H2 Private Const KEY_CREATE_SUB_KEY = &H4 Private Const KEY_ENUMERATE_SUB_KEYS = &H8 Private Const KEY_NOTIFY = &H10


【文件预览】:
将程序设为NT服务
----使用说明.txt(1KB)
----basService.bas(15KB)
----frmMain.frx(1KB)
----MSSCCPRJ.SCC(494B)
----NTSVC.ICO(1KB)
----NTServTamer.vbw(156B)
----FrmRead.frx(2KB)
----ntsvc.bmp(257KB)
----basRegistry.bas(25KB)
----NTServTamer.NET()
--------NTServTamer.log(3KB)
----basSyeReboot.bas(232B)
----frmMain.frm(8KB)
----NTServ.vbw(149B)
----NTServTamer.vbp(891B)

网友评论

  • 还好啊,win7下面不知道为什么不正常