#include <ntddk.h>
#include <debug.h>
#include <rosrtl/string.h>
#include "precomp.h"
#include "serial.h"
Go to the source code of this file.
◆ DriverEntry()
Definition at line 163 of file privateice.c.
173 DPRINT((0,
"PICE Debugger\n"));
175 #if 0 // don't enable before completely ported 178 DebugSetupSerial(1,115200);
NTSTATUS NTAPI pice_open(PDEVICE_OBJECT DeviceObject, PIRP Irp)
NTSTATUS NTAPI pice_ioctl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
NTSTATUS NTAPI IoCreateSymbolicLink(IN PUNICODE_STRING SymbolicLinkName, IN PUNICODE_STRING DeviceName)
#define PICE_DEVICE_DEBUGGER
NTSTATUS NTAPI IoCreateDevice(IN PDRIVER_OBJECT DriverObject, IN ULONG DeviceExtensionSize, IN PUNICODE_STRING DeviceName, IN DEVICE_TYPE DeviceType, IN ULONG DeviceCharacteristics, IN BOOLEAN Exclusive, OUT PDEVICE_OBJECT *DeviceObject)
#define RtlRosInitUnicodeStringFromLiteral(__Name__, __Value__)
#define IRP_MJ_DEVICE_CONTROL
◆ pice_close()
Definition at line 92 of file privateice.c.
94 DPRINT((0,
"pice_close\n"));
#define IoCompleteRequest
BOOLEAN bDeviceAlreadyOpen
◆ pice_ioctl()
Definition at line 111 of file privateice.c.
143 ULONG OutLength = IoStack->
Parameters.DeviceIoControl.OutputBufferLength;
#define PICE_IOCTL_UNLOAD
#define PICE_IOCTL_RELOAD
#define STATUS_INVALID_PARAMETER
int PICE_sprintf(char *buf, const char *fmt,...)
__asm__("\n\t \
NewInt3Handler:\n\t \
pushl $" STR(REASON_INT3) "\n\t \
// call debugger loop\n\t \
jmp NewInt31Handler\n\t \
")
void Print(USHORT Window, LPSTR p)
#define IoCompleteRequest
struct _DEBUGGER_STATUS_BLOCK * PDEBUGGER_STATUS_BLOCK
_In_ UCHAR _In_ UCHAR _In_ ULONG Code
#define PICE_IOCTL_STATUS
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(_In_ PIRP Irp)
BOOLEAN ReloadSymbols(void)
#define RtlCopyMemory(Destination, Source, Length)
struct _NAMED_PIPE_CREATE_PARAMETERS * Parameters
Referenced by DriverEntry().
◆ pice_open()
Definition at line 72 of file privateice.c.
#define IoCompleteRequest
#define STATUS_UNSUCCESSFUL
BOOLEAN bDeviceAlreadyOpen
Referenced by DriverEntry().
◆ bDeviceAlreadyOpen
◆ tempPICE