Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( // ProcmonDefaultReceiveSize is the default size of the receive buffer // 140k is the maximum size a notification can be, resulting in more memory usage traded off for // not missing notifications. ProcmonDefaultReceiveSize = (140 * 1024) // ProcmonDefaultNumBufs is the default number of overlapped receive buffers ProcmonDefaultNumBufs = 50 )
View Source
const ( ProcmonStartIOCTL = 0x222006 ProcmonStopIOCTL = 0x22200a ProcmonStatsIOCTL = 0x22200e ProcmonSignature = 0xdd0100000004 )
View Source
const ( ProcmonNotifyStop = 0x0 ProcmonNotifyStart = 0x1 )
View Source
const DDProcessNotificationSize = 0x68
View Source
const DDProcmonStatsSize = 0x30
View Source
const Signature = 0xdd0100000004
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DDProcessNotification ¶
type DDProcessNotifyType ¶
type DDProcessNotifyType uint32
type DDProcmonStats ¶
type ProcessStopNotification ¶
type ProcessStopNotification struct {
Pid uint64
}
type WinProcmon ¶
type WinProcmon struct {
// contains filtered or unexported fields
}
func NewWinProcMon ¶
func NewWinProcMon(onStart chan *ProcessStartNotification, onStop chan *ProcessStopNotification, onError chan bool, bufsize, numbufs int) (*WinProcmon, error)
NewWinProcMon creates a new WinProcmon
requires 3 channels for notification of data (one for start notifications, stop notifications, and error notifications)
the bufsize and numbufs params, respectively, can be used to override the defaults for those parameters (if 0 is provided then defaults are used) Allows caller to configure the number & size of the overlapped buffers used for receiving notifications from the driver
func (*WinProcmon) OnData ¶
func (wp *WinProcmon) OnData(data []uint8)
func (*WinProcmon) OnError ¶
func (wp *WinProcmon) OnError(err error)
func (*WinProcmon) Start ¶
func (wp *WinProcmon) Start() error
func (*WinProcmon) Stop ¶
func (wp *WinProcmon) Stop()
Click to show internal directories.
Click to hide internal directories.