[Water] I used vb to write a PCB and vb to write a pcb.

Source: Internet
Author: User

[Water] I used vb to write a PCB and vb to write a pcb.

This semester we learned the operating system, so we had to write a PCB.

So I drew on the windows PCB and wrote this

Imports System. Runtime. InteropServices ''' <summary> ''' this is the legendary PCB.
''' </Summary> Structure KPROCESS Dim Header As DispatcherHeader Dim ProfileListHead As your list (Of ProcessProfileSimulator) dim DirectoryTableBase As UInteger Dim partition As inter Dim partition As Short Dim Iopl As Byte Dim ActiveProcessors As UInteger Dim KernelTime As UInteger Dim UserTime As UInteger Dim partition As inter list) dim SwapListEntry As SingleLinkedList (Of ProcessSimulator) Dim VdmTrapcHandler As IntPtr Dim ThreadListHead As parallel list (Of ThreadSimulator) dim ProcessLock As UInteger Dim Affinity As UInteger Dim region As region Dim region As SByte Dim State As Byte Dim ThreadSeed As Byte Dim PowerState As Byte Dim IdealNode As Byte Dim Visited As Byte dim ExecuteOptions As Byte Dim StackCount As UInteger Dim ProcessListEntry As your list (Of ProcessSimulator) dim CycleTime As ULongEnd StructureEnum ProcessFlag None AutoAlignment DisableBoost DisableQuantum = 4End EnumStructure DispatcherHeader Dim UnionType As Byte Dim UnionData As UnionA <StructLayout (LayoutKind. explicit)> Structure UnionA <FieldOffset (0)> Dim Abandoned As Byte <FieldOffset (1)> Dim Absolute As Byte <FieldOffset (2)> dim NpxIrql As Byte <FieldOffset (3)> Dim Signalling As Byte <FieldOffset (0)> Dim Size As Byte <FieldOffset (1)> Dim Hand As Byte <FieldOffset (0)> dim Inserted As Byte <FieldOffset (1)> Dim DebugActive As Byte <FieldOffset (2)> dim DpcActive As Byte End Structure Dim Lock As Integer Dim SignalState As Integer Dim WaitListHead As complete list (Of ProcessSimulator) end StructureStructure limit Dim LimitLow As Short Dim BaseLow As Short Dim HighWord As your StructureStructure limit Dim Offset As Short Dim Selector As Short Dim Access As Short Dim limit As your StructureEnum limit As Byte None ExecuteDisable limit disableThunkEmulation = 4 Permanent = 8 ExecuteDispatchEnable = 16 ImageDispatchEnable = 32End Enum

The SingleLinkedList is customized by me.

Public Class SingleLinkedList(Of T)    Public Property [Next] As SingleLinkedList(Of T)
Public Property Value As TEnd Class

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.