1.comå£çç¨åº
2.wrk编译WRK
comå£çç¨åº
ç¾åº¦æåæ°éå¶ï¼è¿æºä»£ç çä¸ä¸ªç±»é½ç²ä¸ä¸ï¼ä¸é¢è¿ä¸ªç±»æ¯åéæ¥æ¶çä¿¡çç±»çä¸é¨åï¼è¿ä¸ªç±»æ»å ±æä¸åäºç¾å¤è¡ï¼æ ¹æ¬ç²ä¸å ¨ï¼ä½ å¯ä»¥åèä¸ä¸ã
çä¿¡ç»ç«¯æä½çå ³é®æ¯çä¿¡çç¼ç å解ç ï¼è±æèµæå¾å¤ï¼ä¸æçåºæ¬æ¾ä¸å°ï¼ä½ å¯ä»¥å¤æ¥äºèµæã
Option Explicit On
Public Class Jwc
'_______________声æmscommæ§ä»¶__________________
Public MSComm1 As New MSCommLib.MSComm
'__________________串å£è°è¯_____________________
Dim bug As String
Public B_bug As Boolean = False
'__________________串å£è®¾ç½®_____________________
Public L_com() As String
Public I_P As Integer = 1 '端å£å·
Public S_Set As String = ",源码n,8,1" 'åå§å符串
Public C_open As Boolean = False
Public ret_l As Double
'__________________çä¿¡å ±ç¨åé_________________
Dim l_msg_c As Integer = 0
Dim l_msg_i As Integer = 0
Dim l_msg_t As Integer = 0
Dim l_msg_x As Integer =
'__________________读åçä¿¡_____________________
Public ID1 As String 'çä¿¡ç¼å·
Public ID2 As String 'çä¿¡åç±»
Public n1 As Integer 'çä¿¡ä¸å¿å·ç é¿åº¦
Public n2 As Integer '被å«å·ç é¿åº¦
Public n3 As Integer 'ç¨æ·æ°æ®é¿åº¦
Public n4 As Integer 'æ¥æé¿åº¦
Public np1 As String 'çä¿¡ä¸å¿å·ç
Public np2 As String '被å«å·ç
Public da1 As String 'æ¥æ
Public sp1 As String 'ç¨æ·æ°æ®
Public Cont As Integer 'ç信个æ°
Public scod As String 'ç¼ç æ¹å¼
Dim ms(, )
'_______________åéçä¿¡________________________
Public s_mg As String
Public m_succ As Boolean 'çä¿¡åéç¶æ
Public cs1 As String = ""
Public cs2 As String = "D"
Public cs3 As String = ""
Public Lms As Integer
'_______________æ¥æ¶çä¿¡________________________
Public mg_count As Integer = 0
Public mg_ade() As Integer
Public mg_N As Boolean = False
'_______________读åè系人______________________
Dim Pbook(, 2) As String
Public bookcont As Integer
'_______________æå¼è®¾å¤________________________
Public Function PhoOpen() As Boolean
Dim i As Integer
Dim j As Integer
Dim n As Integer
Dim coms() As Integer
PhoOpen = False
If C_open Then
PhoOpen = True
Exit Function
End If
For i = 0 To
L_com(i) = ""
Next
j = 0
For i = 1 To
If CheckCom(i) Then
L_com(j) = i
'MsgBox(j & " " & i)
j = j + 1
End If
Next i
'触åOnCommäºä»¶çå符é¿åº¦
For i = 0 To j - 1
n = L_com(i)
'MsgBox(i & " " & n)
I_P = n 'è®°å½å½å端å£å·
If CheckModem(n) Then
'MsgBox("è¿æ¥æåï¼")
PhoOpen = True
C_open = True
PhoLoading()
Exit For
End If
Next i
End Function
'_______________åéATæ令______________________
Public Function ATcode(ByVal s As String) As String
If Not C_open Then
Call PhoOpen()
If Not C_open Then
'MsgBox("æªåç°è®¾å¤ï¼", vbInformation)
ATcode = "æªåç°è®¾å¤ï¼"
Exit Function
End If
End If
ATcode = ""
MSComm1.Output = s
Dim i As Integer
Dim t As String
Dim Sall As String = ""
For i = 0 To
System.Threading.Thread.Sleep()
t = MSComm1.Input
While Len(t) > 0
Sall = Sall & t
t = ""
i = 0
End While
If ATend(Sall) Then
Exit For
End If
If i >= Then
Me.C_open = False
PhoClose()
End If
Next
ret_l = Len(Sall)
'If ret_l = 0 Then
' Sall = "è¿æ¥è¶ æ¶ï¼"
'End If
CheckNewMsg(Sall)
ATcode = Sall
End Function
Public Function ATend(ByVal s As String) As Boolean
Dim i As Integer
Dim t As String = ""
Dim Sall As String = ""
For i = 1 To Len(s)
t = Mid(s, i, 1)
If t <> Chr() And t <> Chr() And t <> Chr() Then
Sall = Sall + t
End If
Next
ATend = False
m_succ = False
If Right(Sall, 1) = ">" Then
ATend = True
m_succ = True
Exit Function
End If
If Right(Sall, 2) = "OK" Then
ATend = True
m_succ = True
Exit Function
End If
If Right(Sall, 5) = "ERROR" Then
ATend = True
Exit Function
End If
If Right(Sall, 7) = "CARRIER" Then
ATend = True
Exit Function
End If
End Function
'_______________读åçä¿¡________________________
Function Getmsg(ByVal i As Integer, ByVal j As Integer) As String
Getmsg = ""
Try
Getmsg = ms(i, j)
Catch ex As Exception
End Try
End Function
'_____________åéçä¿¡_________________________
Function SMG(ByVal n1 As String, ByVal n2 As String, ByVal s1 As String) As Boolean
Dim l1 As String
Dim l2 As String
Dim l3 As String 'åå è¿å¶é¿åº¦
Dim ln1 As String
Dim ln2 As String
Dim ln3 As String 'åè¿å¶é¿åº¦
Dim t1, t2, t3 As String
Dim mg As String
Dim m() As String
Dim m_l() As String
Dim m_c As Integer
Dim ms1, ms2 As String
Dim i As Integer = 0
t1 = ""
t2 = ""
t3 = ""
ms1 = ""
ms2 = ""
'_________å¤ççä¿¡ä¸å¿å·ç __________
t1 = Trim(n1)
If Left(t1, 1) = "+" Then 'å»æå·ç åé¢ç+å·
t1 = Right(t1, Len(t1) - 1)
End If
ln1 = Len(t1)
If ln1 < Then
l1 = "0" & Hex(Len(t1)) 'è·å¾çä¿¡ä¸å¿å·ç é¿åº¦
Else
l1 = Hex(Len(t1))
End If
t1 = NtoS(n1) '翻转çä¿¡ä¸å¿å·ç
'MsgBox(l1)
'__________å¤çè系人å·ç ___________
t2 = Trim(n2)
If Len(t2) = Then 'å½å·ç 为ä½æ¶è¡¥è¶³ä½
t2 = "" & t2 'åé¢å
End If
ln2 = Len(t2)
If ln2 < Then
l2 = "0" & Hex(Len(t2)) 'è·å¾è系人å·ç é¿åº¦
wrk编译WRK
首先,使用VMware在系统中安装Windows Server ,源码所有的源码后续步骤都将在这个虚拟机上进行。将WRK的源码github源码程序源代码复制到C盘,文件夹命名为wrk(可根据个人喜好更改名字)。源码 接下来,源码需要调整环境变量,源码将Path设置为C:\wrk\tools\x;%path%,源码这将确保系统可以找到WRK的源码工具。然后,源码通过命令提示符,源码iptables源码编译安装进入wrk\base\ntos目录,源码输入nmake -nologo x=命令进行内核编译。源码这个过程可能需要一段时间,源码完成后,源码内核文件会在wrk\base\ntos\BUILD\EXE下生成。被动成交指标源码 将编译好的内核文件复制到C:\windows\system,接着,使用link -dump -all hal.dll | findstr pdb命令检查hal.dll文件,对照halacpi.dll与halacpim.dll、halaacpi.dll与halmacpi.dll、智慧物业软件源码halapic.dll与halmps.dll的对应关系,确保正确无误。 然后,进入C:\wrk\WSSP1HALS\x目录,将对应的有趣好玩的源码hal文件夹下的两个文件复制到C:\windows\system。在C盘的隐藏文件boot.ini中,找到最后一行,添加新的启动项:multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="test" /kernel=wrkx.exe /hal=halmacpi.dll。确保这里的"2"与原引导盘分区号一致,否则系统启动时可能找不到引导盘。 重启系统,尝试进入新编译的内核。如果无法正常启动,可能需要进行系统升级,可以下载Windows SP1ch进行安装。务必按照上述步骤进行,以确保内核的成功加载和系统启动。扩展资料
WRK的全称是“Windows Research Kernel”,它是微软为高校操作系统课程提供的可修改和跟踪的操作系统教学平台。它给出了Windows这个成功的商业操作系统的内核大部分代码,可以对其进行修改、编译,并且可以用这个内核启动Windows操作系统。可让学生将操作系统基本原理和商业操作系统内核联系起来,进一步加深对操作系统整体的理解。2024-12-22 16:44
2024-12-22 16:35
2024-12-22 15:59
2024-12-22 15:51
2024-12-22 15:24
2024-12-22 14:42