00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef MAPMEM_H
00028 #define MAPMEM_H
00029
00030
00031 #if defined(WIN32) && !defined(USE_OLD_WINSOCK)
00032
00033
00034 #include <winsock2.h>
00035 #endif
00036
00037 #include <windows.h>
00038 #include <windef.h>
00039 #include <winioctl.h>
00040
00041
00042
00043
00044
00045
00046
00047 #define FILE_DEVICE_MAPMEM 0x00008000
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 #define MAPMEM_IOCTL_INDEX 0x800
00058
00059
00060
00061
00062
00063
00064 #define IOCTL_MAPMEM_MAP_USER_PHYSICAL_MEMORY CTL_CODE(FILE_DEVICE_MAPMEM , \
00065 MAPMEM_IOCTL_INDEX, \
00066 METHOD_BUFFERED, \
00067 FILE_ANY_ACCESS)
00068
00069 #define IOCTL_MAPMEM_UNMAP_USER_PHYSICAL_MEMORY CTL_CODE(FILE_DEVICE_MAPMEM, \
00070 MAPMEM_IOCTL_INDEX+1,\
00071 METHOD_BUFFERED, \
00072 FILE_ANY_ACCESS)
00073
00074
00075
00076
00077
00078
00079
00080
00081 typedef enum _INTERFACE_TYPE
00082 {
00083 Internal,
00084 Isa,
00085 Eisa,
00086 MicroChannel,
00087 TurboChannel,
00088 MaximumInterfaceType
00089 }
00090 INTERFACE_TYPE, *PINTERFACE_TYPE;
00091
00092
00093 typedef struct
00094 {
00095 INTERFACE_TYPE InterfaceType;
00096 ULONG BusNumber;
00097 LARGE_INTEGER BusAddress;
00098 ULONG AddressSpace;
00099 ULONG Length;
00100
00101 }
00102 PHYSICAL_MEMORY_INFO, *PPHYSICAL_MEMORY_INFO;
00103
00104
00105 #endif