Buenas tardes gente,
Estoy renegando haciendo una llamada a una API del kernel.
BOOL WINAPI SetSystemFileCacheSize( __in SIZE_T MinimumFileCacheSize,
__in SIZE_T MaximumFileCacheSize, __in DWORD Flags);
Ya intente pasando los parametros SIZE_T como int32, int64 e intptr y tengo
diferentes errores:
Access denied à aunque sea admin de la maquina
Parameter incorrect
Arithmetic result exceeded 32 bits à aunque todos los tipos de los
parametros sea int64
Alguien se le ocurre como llamar correctamente este método.
' BOOL WINAPI SetSystemFileCacheSize( __in SIZE_T MinimumFileCacheSize,
__in SIZE_T MaximumFileCacheSize, __in DWORD Flags );
<System.Runtime.InteropServices.DllImport("kernel32.dll",
SetLastError:=True)> _
Public Function SetSystemFileCacheSize(ByVal MinimumFileCacheSize As
Int32, ByVal MaximumFileCacheSize As Int32, ByVal Flags As Int32) As
System.Boolean
End Function
Gracias.