usbview.c in USBView_VC.rar


USB-VIEW source code, needs to install DDK to be able to translate...Original Link
    Sponsored links

			
/*++

Copyright (c) 1997-1998 Microsoft Corporation

Module Name:

    USBVIEW.C

Abstract:

    This is the GUI goop for the USBVIEW application.

Environment:

    user mode

Revision History:

    04-25-97 : created

--*/

//*****************************************************************************
// I N C L U D E S
//*****************************************************************************
#include <windows.h>
#include <basetyps.h>
#include <windowsx.h>
#include <initguid.h>
#include "devioctl.h"
#include "usbioctl.h"
#include <dbt.h>
#include <stdio.h>

#include "resource.h"
#include "usbview.h"


typedef  PVOID           HDEVNOTIFY;
typedef struct _DEV_BROADCAST_DEVICEINTERFACE_A {
    DWORD       dbcc_size;
    DWORD       dbcc_devicetype;
    DWORD       dbcc_reserved;
    GUID        dbcc_classguid;
    char        dbcc_name[1];
} DEV_BROADCAST_DEVICEINTERFACE_A, *PDEV_BROADCAST_DEVICEINTERFACE_A;
typedef DEV_BROADCAST_DEVICEINTERFACE_A   DEV_BROADCAST_DEVICEINTERFACE;
typedef PDEV_BROADCAST_DEVICEINTERFACE_A  PDEV_BROADCAST_DEVICEINTERFACE;
#define DBT_DEVTYP_DEVICEINTERFACE      0x00000005  // device interface class
#define DBT_DEVTYP_HANDLE               0x00000006  // file system handle
#define DEVICE_NOTIFY_WINDOW_HANDLE     0x00000000
#define DEVICE_NOTIFY_SERVICE_HANDLE    0x00000001
WINUSERAPI
HDEVNOTIFY
WINAPI
RegisterDeviceNotificationA(
    IN HANDLE hRecipient,
    IN LPVOID NotificationFilter,
    IN DWORD Flags
    );
WINUSERAPI
HDEVNOTIFY
WINAPI
RegisterDeviceNotificationW(
    IN HANDLE hRecipient,
    IN LPVOID NotificationFilter,
    IN DWORD Flags
    );
#define RegisterDeviceNotification  RegisterDeviceNotificationA

WINUSERAPI
BOOL
WINAPI
UnregisterDeviceNotification(
    IN HDEVNOTIFY Handle
    );



//*****************************************************************************
// D E F I N E S
//*****************************************************************************

// window control			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 <USBView>0.00 B05-09-05 13:02
 USBView.opt57.50 kB04-09-05 02:36
 USBView.dsw537.00 B04-09-05 01:23
 USBView.ncb105.00 kB04-09-05 02:36
 bang.ico1.80 kB30-12-99 06:09
 debug.c4.03 kB27-07-00 01:33
 dispaud.c32.57 kB27-07-00 01:34
 display.c31.80 kB27-07-00 01:34
 enum.c50.45 kB27-07-00 01:34
 hub.ico766.00 B30-12-99 06:09
 monitor.ico9.90 kB30-12-99 06:09
 port.ico766.00 B30-12-99 06:09
 resource.h978.00 B27-07-00 01:34
 sources526.00 B27-07-00 01:34
 split.cur326.00 B30-12-99 06:09
 usb.ico766.00 B30-12-99 06:09
 usbdesc.h9.04 kB27-07-00 01:34
 usbview.htm7.03 kB30-12-99 06:09
 vndrlist.h20.91 kB27-07-00 01:34
 USBView.plg899.00 B04-09-05 02:02
 usbview.rc3.24 kB04-09-05 01:29
 devioctl.h3.90 kB07-07-00 18:04
 usbioctl.h18.68 kB07-07-00 18:04
 usb100.h7.45 kB07-07-00 18:04
 usbview.h5.56 kB04-09-05 01:52
 winuser.h238.47 kB07-07-00 18:04
 usbview.c24.52 kB04-09-05 01:56
 devnode.c3.97 kB04-09-05 01:56
 cfg.h4.57 kB07-07-00 18:04
 cfgmgr32.lib51.67 kB07-07-00 18:04
 cfgmgr32.h82.86 kB04-09-05 02:00
 COMCTL32.LIB71.04 kB13-05-98 18:04
 USBView.dsp4.50 kB04-09-05 02:02
 <Debug>0.00 B05-09-05 13:02
...

Related Items

    Sponsored links