ifndef _DBT_H
_DBT_H	EQU	1
WM_DEVICECHANGE	EQU	0219H
ifndef	WINVER
WINVER	EQU	040AH
endif
ifndef _WCHAR_T_DEFINED
_WCHAR_T_DEFINED	EQU	1
endif
ifndef GUID_DEFINED
GUID_DEFINED	EQU	1

_GUID	STRUC
Data1	DD	?
Data2	DW	?
Data3	DW	?
Data4	DB	8 DUP (?)
_GUID	ENDS
endif
BSF_QUERY	EQU	00000001H
BSF_IGNORECURRENTTASK	EQU	00000002H
BSF_FLUSHDISK	EQU	00000004H
BSF_NOHANG	EQU	00000008H
BSF_POSTMESSAGE	EQU	00000010H
BSF_FORCEIFHUNG	EQU	00000020H
BSF_NOTIMEOUTIFNOTHUNG	EQU	00000040H
BSF_MSGSRV32ISOK	EQU	80000000H
BSF_MSGSRV32ISOK_BIT	EQU	31
BSM_ALLCOMPONENTS	EQU	00000000H
BSM_VXDS	EQU	00000001H
BSM_NETDRIVER	EQU	00000002H
BSM_INSTALLABLEDRIVERS	EQU	00000004H
BSM_APPLICATIONS	EQU	00000008H
DBT_APPYBEGIN	EQU	0000H
DBT_APPYEND	EQU	0001H
DBT_DEVNODES_CHANGED	EQU	0007H
DBT_QUERYCHANGECONFIG	EQU	0017H
DBT_CONFIGCHANGED	EQU	0018H
DBT_CONFIGCHANGECANCELED	EQU	0019H
DBT_MONITORCHANGE	EQU	001BH
DBT_SHELLLOGGEDON	EQU	0020H
DBT_CONFIGMGAPI32	EQU	0022H
DBT_VXDINITCOMPLETE	EQU	0023H
DBT_VOLLOCKQUERYLOCK	EQU	8041H
DBT_VOLLOCKLOCKTAKEN	EQU	8042H
DBT_VOLLOCKLOCKFAILED	EQU	8043H
DBT_VOLLOCKQUERYUNLOCK	EQU	8044H
DBT_VOLLOCKLOCKRELEASED	EQU	8045H
DBT_VOLLOCKUNLOCKFAILED	EQU	8046H

_DEV_BROADCAST_HDR	STRUC
dbch_size	DD	?
dbch_devicetype	DD	?
dbch_reserved	DD	?
_DEV_BROADCAST_HDR	ENDS

VolLockBroadcast	STRUC
vlb_dbh	DB	SIZE _DEV_BROADCAST_HDR DUP (?)
vlb_owner	DD	?
vlb_perms	DB	?
vlb_lockType	DB	?
vlb_drive	DB	?
vlb_flags	DB	?
VolLockBroadcast	ENDS
LOCKP_ALLOW_WRITES	EQU	01H
LOCKP_FAIL_WRITES	EQU	00H
LOCKP_FAIL_MEM_MAPPING	EQU	02H
LOCKP_ALLOW_MEM_MAPPING	EQU	00H
LOCKP_USER_MASK	EQU	03H
LOCKP_LOCK_FOR_FORMAT	EQU	04H
LOCKF_LOGICAL_LOCK	EQU	00H
LOCKF_PHYSICAL_LOCK	EQU	01H
DBT_NO_DISK_SPACE	EQU	0047H
DBT_LOW_DISK_SPACE	EQU	0048H
DBT_PRESHELLLOGGEDON	EQU	0049H
DBT_CONFIGMGPRIVATE	EQU	7FFFH
DBT_IDIOTS_CHECK	EQU	7F7FH
DBT_DEVICEARRIVAL	EQU	8000H
DBT_DEVICEQUERYREMOVE	EQU	8001H
DBT_DEVICEQUERYREMOVEFAILED	EQU	8002H
DBT_DEVICEREMOVEPENDING	EQU	8003H
DBT_DEVICEREMOVECOMPLETE	EQU	8004H
DBT_DEVICETYPESPECIFIC	EQU	8005H
IF (WINVER GE 040AH)
DBT_CUSTOMEVENT	EQU	8006H
endif
DBT_DEVTYP_OEM	EQU	00000000H
DBT_DEVTYP_DEVNODE	EQU	00000001H
DBT_DEVTYP_VOLUME	EQU	00000002H
DBT_DEVTYP_PORT	EQU	00000003H
DBT_DEVTYP_NET	EQU	00000004H
IF (WINVER GE 040AH)
DBT_DEVTYP_DEVICEINTERFACE	EQU	00000005H
DBT_DEVTYP_HANDLE	EQU	00000006H
endif

_DEV_BROADCAST_HEADER	STRUC
dbcd_size	DD	?
dbcd_devicetype	DD	?
dbcd_reserved	DD	?
_DEV_BROADCAST_HEADER	ENDS

_DEV_BROADCAST_OEM	STRUC
dbco_size	DD	?
dbco_devicetype	DD	?
dbco_reserved	DD	?
dbco_identifier	DD	?
dbco_suppfunc	DD	?
_DEV_BROADCAST_OEM	ENDS

_DEV_BROADCAST_DEVNODE	STRUC
dbcd_size	DD	?
dbcd_devicetype	DD	?
dbcd_reserved	DD	?
dbcd_devnode	DD	?
_DEV_BROADCAST_DEVNODE	ENDS

_DEV_BROADCAST_VOLUME	STRUC
dbcv_size	DD	?
dbcv_devicetype	DD	?
dbcv_reserved	DD	?
dbcv_unitmask	DD	?
dbcv_flags	DW	?
_DEV_BROADCAST_VOLUME	ENDS
DBTF_MEDIA	EQU	0001H
DBTF_NET	EQU	0002H

_DEV_BROADCAST_PORT_A	STRUC
dbcp_size	DD	?
dbcp_devicetype	DD	?
dbcp_reserved	DD	?
dbcp_name	DB	1 DUP (?)
_DEV_BROADCAST_PORT_A	ENDS

_DEV_BROADCAST_PORT_W	STRUC
dbcp_size	DD	?
dbcp_devicetype	DD	?
dbcp_reserved	DD	?
dbcp_name	DW	1 DUP (?)
_DEV_BROADCAST_PORT_W	ENDS
ifdef UNICODE
else
endif

_DEV_BROADCAST_NET	STRUC
dbcn_size	DD	?
dbcn_devicetype	DD	?
dbcn_reserved	DD	?
dbcn_resource	DD	?
dbcn_flags	DD	?
_DEV_BROADCAST_NET	ENDS
IF (WINVER GE 040AH)

_DEV_BROADCAST_DEVICEINTERFACEA	STRUC
dbcc_size	DD	?
dbcc_devicetype	DD	?
dbcc_reserved	DD	?
dbcc_classguid	DB	SIZE _GUID DUP (?)
dbcc_name	DB	1 DUP (?)
_DEV_BROADCAST_DEVICEINTERFACEA	ENDS

_DEV_BROADCAST_DEVICEINTERFACEW	STRUC
dbcc_size	DD	?
dbcc_devicetype	DD	?
dbcc_reserved	DD	?
dbcc_classguid	DB	SIZE _GUID DUP (?)
dbcc_name	DW	1 DUP (?)
_DEV_BROADCAST_DEVICEINTERFACEW	ENDS
ifdef UNICODE
else
endif

_DEV_BROADCAST_HANDLE	STRUC
dbch_size	DD	?
dbch_devicetype	DD	?
dbch_reserved	DD	?
dbch_handle	DD	?
dbch_hdevnotify	DD	?
dbch_eventguid	DB	SIZE _GUID DUP (?)
dbch_nameoffset	DD	?
dbch_data	DB	1 DUP (?)
_DEV_BROADCAST_HANDLE	ENDS
endif
DBTF_RESOURCE	EQU	00000001H
DBTF_XPORT	EQU	00000002H
DBTF_SLOWNET	EQU	00000004H
DBT_VPOWERDAPI	EQU	8100H
DBT_USERDEFINED	EQU	0FFFFH

_DEV_BROADCAST_USERDEFINED	STRUC
dbud_dbh	DB	SIZE _DEV_BROADCAST_HDR DUP (?)
dbud_szName	DB	1 DUP (?)
_DEV_BROADCAST_USERDEFINED	ENDS
endif
