Sample Code

Windows Driver Samples/ Windows Filtering Platform MSN Messenger Monitor Sample/ C++/ inc/ ioctl.h/

/*++

Copyright (c) Microsoft Corporation. All rights reserved

Abstract:

    Monitor Sample callout driver IOCTL header

Environment:

    Kernel mode
    
--*/

#pragma once

#define MONITOR_DEVICE_NAME     L"\\Device\\MonitorSample"
#define MONITOR_SYMBOLIC_NAME   L"\\DosDevices\\Global\\MonitorSample"
#define MONITOR_DOS_NAME   L"\\\\.\\MonitorSample"

typedef enum _MONITOR_OPERATION_MODE
{
   invalidOperation = 0,
   monitorTraffic = 1,
   monitorOperationMax
} MONITOR_OPERATION_MODE;

typedef struct _MONITOR_SETTINGS
{
   MONITOR_OPERATION_MODE  monitorOperation;
   UINT32                  flags;
} MONITOR_SETTINGS;

#define	MONITOR_IOCTL_ENABLE_MONITOR  CTL_CODE(FILE_DEVICE_NETWORK, 0x1, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define	MONITOR_IOCTL_DISABLE_MONITOR CTL_CODE(FILE_DEVICE_NETWORK, 0x2, METHOD_BUFFERED, FILE_ANY_ACCESS)

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS