@@ -57,8 +57,8 @@ public unsafe struct VMMDLL_VFS_FILELIST
5757 {
5858 public uint dwVersion ;
5959 public uint _Reserved ;
60- public delegate * unmanaged< IntPtr , byte * , ulong , IntPtr , int > pfnAddFile ;
61- public delegate * unmanaged< IntPtr , byte * , IntPtr , int > pfnAddDirectory ;
60+ public delegate * unmanaged< IntPtr , void * , ulong , IntPtr , int > pfnAddFile ;
61+ public delegate * unmanaged< IntPtr , void * , IntPtr , int > pfnAddDirectory ;
6262 public IntPtr h ;
6363 }
6464
@@ -941,8 +941,10 @@ public static partial bool VMMDLL_ConfigSet(
941941 ulong qwValue ) ;
942942
943943 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_MemFree" ) ]
944- public static unsafe partial void VMMDLL_MemFree (
945- void * pvMem ) ;
944+ public static unsafe partial void VMMDLL_MemFree ( void * pvMem ) ;
945+
946+ [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_MemFree" ) ]
947+ public static partial void VMMDLL_MemFree ( IntPtr pvMem ) ;
946948
947949 // VFS (VIRTUAL FILE SYSTEM) FUNCTIONALITY BELOW:
948950
@@ -957,7 +959,7 @@ public static unsafe partial bool VMMDLL_VfsList(
957959 public static unsafe partial uint VMMDLL_VfsRead (
958960 IntPtr hVMM ,
959961 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string wcsFileName ,
960- byte * pb ,
962+ void * pb ,
961963 uint cb ,
962964 out uint pcbRead ,
963965 ulong cbOffset ) ;
@@ -966,7 +968,7 @@ public static unsafe partial uint VMMDLL_VfsRead(
966968 public static unsafe partial uint VMMDLL_VfsWrite (
967969 IntPtr hVMM ,
968970 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string wcsFileName ,
969- byte * pb ,
971+ void * pb ,
970972 uint cb ,
971973 out uint pcbRead ,
972974 ulong cbOffset ) ;
@@ -993,7 +995,7 @@ public static unsafe partial bool VMMDLL_MemReadEx(
993995 IntPtr hVMM ,
994996 uint dwPID ,
995997 ulong qwA ,
996- byte * pb ,
998+ void * pb ,
997999 uint cb ,
9981000 out uint pcbReadOpt ,
9991001 VmmFlags flags ) ;
@@ -1004,14 +1006,14 @@ public static unsafe partial bool VMMDLL_MemReadPage(
10041006 IntPtr hVMM ,
10051007 uint dwPID ,
10061008 ulong qwA ,
1007- byte * pbPage ) ;
1009+ void * pbPage ) ;
10081010
10091011 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_MemPrefetchPages" ) ]
10101012 [ return : MarshalAs ( UnmanagedType . Bool ) ]
10111013 public static unsafe partial bool VMMDLL_MemPrefetchPages (
10121014 IntPtr hVMM ,
10131015 uint dwPID ,
1014- byte * pPrefetchAddresses ,
1016+ void * pPrefetchAddresses ,
10151017 uint cPrefetchAddresses ) ;
10161018
10171019 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_MemWrite" ) ]
@@ -1020,7 +1022,7 @@ public static unsafe partial bool VMMDLL_MemWrite(
10201022 IntPtr hVMM ,
10211023 uint dwPID ,
10221024 ulong qwA ,
1023- byte * pb ,
1025+ void * pb ,
10241026 uint cb ) ;
10251027
10261028 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_MemVirt2Phys" ) ]
@@ -1086,7 +1088,7 @@ public static unsafe partial bool VMMDLL_Scatter_Clear(
10861088
10871089 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_PidList" ) ]
10881090 [ return : MarshalAs ( UnmanagedType . Bool ) ]
1089- public static unsafe partial bool VMMDLL_PidList ( IntPtr hVMM , byte * pPIDs , ref ulong pcPIDs ) ;
1091+ public static unsafe partial bool VMMDLL_PidList ( IntPtr hVMM , void * pPIDs , ref ulong pcPIDs ) ;
10901092
10911093 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_PidGetFromName" ) ]
10921094 [ return : MarshalAs ( UnmanagedType . Bool ) ]
@@ -1103,7 +1105,7 @@ public static unsafe partial bool VMMDLL_Scatter_Clear(
11031105 public static unsafe partial bool VMMDLL_ProcessGetInformation (
11041106 IntPtr hVMM ,
11051107 uint dwPID ,
1106- byte * pProcessInformation ,
1108+ void * pProcessInformation ,
11071109 ref ulong pcbProcessInformation ) ;
11081110
11091111 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_ProcessGetInformationAll" ) ]
@@ -1115,7 +1117,7 @@ out uint pcProcessInformation
11151117 ) ;
11161118
11171119 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_ProcessGetInformationString" ) ]
1118- public static unsafe partial byte * VMMDLL_ProcessGetInformationString (
1120+ public static unsafe partial void * VMMDLL_ProcessGetInformationString (
11191121 IntPtr hVMM ,
11201122 uint dwPID ,
11211123 uint fOptionString ) ;
@@ -1126,15 +1128,15 @@ public static unsafe partial bool VMMDLL_ProcessGetDirectories(
11261128 IntPtr hVMM ,
11271129 uint dwPID ,
11281130 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string uszModule ,
1129- byte * pData ) ;
1131+ void * pData ) ;
11301132
11311133 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_ProcessGetSectionsU" ) ]
11321134 [ return : MarshalAs ( UnmanagedType . Bool ) ]
11331135 public static unsafe partial bool VMMDLL_ProcessGetSections (
11341136 IntPtr hVMM ,
11351137 uint dwPID ,
11361138 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string uszModule ,
1137- byte * pData ,
1139+ void * pData ,
11381140 uint cData ,
11391141 out uint pcData ) ;
11401142
@@ -1146,15 +1148,15 @@ public static unsafe partial bool VMMDLL_PdbLoad(
11461148 IntPtr hVMM ,
11471149 uint dwPID ,
11481150 ulong vaModuleBase ,
1149- byte * pModuleMapEntry ) ;
1151+ void * pModuleMapEntry ) ;
11501152
11511153 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_PdbSymbolName" ) ]
11521154 [ return : MarshalAs ( UnmanagedType . Bool ) ]
11531155 public static unsafe partial bool VMMDLL_PdbSymbolName (
11541156 IntPtr hVMM ,
11551157 [ MarshalAs ( UnmanagedType . LPStr ) ] string szModule ,
11561158 ulong cbSymbolAddressOrOffset ,
1157- byte * szSymbolName ,
1159+ void * szSymbolName ,
11581160 out uint pdwSymbolDisplacement ) ;
11591161
11601162 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_PdbSymbolAddress" ) ]
@@ -1367,17 +1369,17 @@ public static unsafe partial bool VMMDLL_Map_GetServices(
13671369 [ return : MarshalAs ( UnmanagedType . Bool ) ]
13681370 public static unsafe partial bool VMMDLL_Map_GetPfn (
13691371 IntPtr hVMM ,
1370- byte * pPfns ,
1372+ void * pPfns ,
13711373 uint cPfns ,
1372- byte * pPfnMap ,
1374+ void * pPfnMap ,
13731375 ref uint pcbPfnMap ) ;
13741376
13751377 // REGISTRY FUNCTIONALITY BELOW:
13761378 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_WinReg_HiveList" ) ]
13771379 [ return : MarshalAs ( UnmanagedType . Bool ) ]
13781380 public static unsafe partial bool VMMDLL_WinReg_HiveList (
13791381 IntPtr hVMM ,
1380- byte * pHives ,
1382+ void * pHives ,
13811383 uint cHives ,
13821384 out uint pcHives ) ;
13831385
@@ -1387,7 +1389,7 @@ public static unsafe partial bool VMMDLL_WinReg_HiveReadEx(
13871389 IntPtr hVMM ,
13881390 ulong vaCMHive ,
13891391 uint ra ,
1390- byte * pb ,
1392+ void * pb ,
13911393 uint cb ,
13921394 out uint pcbReadOpt ,
13931395 VmmFlags flags ) ;
@@ -1398,7 +1400,7 @@ public static unsafe partial bool VMMDLL_WinReg_HiveWrite(
13981400 IntPtr hVMM ,
13991401 ulong vaCMHive ,
14001402 uint ra ,
1401- byte * pb ,
1403+ void * pb ,
14021404 uint cb ) ;
14031405
14041406 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_WinReg_EnumKeyExU" ) ]
@@ -1407,7 +1409,7 @@ public static unsafe partial bool VMMDLL_WinReg_EnumKeyEx(
14071409 IntPtr hVMM ,
14081410 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string uszFullPathKey ,
14091411 uint dwIndex ,
1410- byte * lpName ,
1412+ void * lpName ,
14111413 ref uint lpcchName ,
14121414 out ulong lpftLastWriteTime ) ;
14131415
@@ -1417,10 +1419,10 @@ public static unsafe partial bool VMMDLL_WinReg_EnumValue(
14171419 IntPtr hVMM ,
14181420 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string uszFullPathKey ,
14191421 uint dwIndex ,
1420- byte * lpValueName ,
1422+ void * lpValueName ,
14211423 ref uint lpcchValueName ,
14221424 out uint lpType ,
1423- byte * lpData ,
1425+ void * lpData ,
14241426 ref uint lpcbData ) ;
14251427
14261428 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_WinReg_QueryValueExU" ) ]
@@ -1429,7 +1431,7 @@ public static unsafe partial bool VMMDLL_WinReg_QueryValueEx(
14291431 IntPtr hVMM ,
14301432 [ MarshalAs ( UnmanagedType . LPUTF8Str ) ] string uszFullPathKeyValue ,
14311433 out uint lpType ,
1432- byte * lpData ,
1434+ void * lpData ,
14331435 ref uint lpcbData ) ;
14341436
14351437 // MEMORY SEARCH FUNCTIONALITY BELOW:
@@ -1446,10 +1448,10 @@ public static unsafe partial bool VMMDLL_MemSearch(
14461448 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_UtilFillHexAscii" ) ]
14471449 [ return : MarshalAs ( UnmanagedType . Bool ) ]
14481450 public static unsafe partial bool VMMDLL_UtilFillHexAscii (
1449- byte * pb ,
1451+ void * pb ,
14501452 uint cb ,
14511453 uint cbInitialOffset ,
1452- byte * sz ,
1454+ void * sz ,
14531455 ref uint pcsz ) ;
14541456
14551457 [ LibraryImport ( "vmm.dll" , EntryPoint = "VMMDLL_Log" ) ]
0 commit comments