Beispiel #1
0
 public static extern int VirtualQuery(
     byte *lpAddress,
     MEMORY_BASIC_INFORMATION *lpBuffer,
     IntPtr dwLength
     );
 public static extern nuint VirtualQueryEx(HANDLE hProcess, [NativeTypeName("LPCVOID")] void* lpAddress, [NativeTypeName("PMEMORY_BASIC_INFORMATION")] MEMORY_BASIC_INFORMATION* lpBuffer, [NativeTypeName("SIZE_T")] nuint dwLength);
 public static extern UIntPtr VirtualQuery(UIntPtr lpAddress, MEMORY_BASIC_INFORMATION *lpBuffer, UIntPtr dwLength);
Beispiel #4
0
 public static extern UIntPtr VirtualQueryEx([NativeTypeName("HANDLE")][CppAttributeList("Name=SAL_name; p1=\"_In_\"; p2=\"\"; p3=\"2\"^Name=SAL_begin^Name=SAL_pre^Name=SAL_notref^Name=SAL_null; p1=__no^Name=SAL_valid^Name=SAL_deref^Name=SAL_access; p1=0x1^Name=SAL_end")] IntPtr hProcess, [NativeTypeName("LPCVOID")][CppAttributeList("Name=SAL_name; p1=\"_In_opt_\"; p2=\"\"; p3=\"2\"^Name=SAL_begin^Name=SAL_pre^Name=SAL_notref^Name=SAL_null; p1=__maybe^Name=SAL_valid^Name=SAL_name; p1=\"_Deref_pre_readonly_\"; p2=\"\"; p3=\"1.1\"^Name=SAL_deref^Name=SAL_access; p1=0x1^Name=SAL_end")] void *lpAddress, [NativeTypeName("PMEMORY_BASIC_INFORMATION")][CppAttributeList("Name=SAL_name; p1=\"_Out_writes_bytes_to_\"; p2=\"\"; p3=\"2\"^Name=SAL_begin^Name=SAL_name; p1=\"_Pre_bytecap_\"; p2=\"\"; p3=\"1.1\"^Name=SAL_pre^Name=SAL_notref^Name=SAL_null; p1=__no^Name=SAL_writableTo; p1=byteCount(dwLength)^Name=SAL_end^Name=SAL_post^Name=SAL_valid^Name=SAL_name; p1=\"_Post_bytecount_\"; p2=\"\"; p3=\"1.1\"^Name=SAL_readableTo; p1=byteCount(return)")] MEMORY_BASIC_INFORMATION *lpBuffer, [NativeTypeName("SIZE_T")][CppAttributeList("Name=SAL_name; p1=\"_In_\"; p2=\"\"; p3=\"2\"^Name=SAL_begin^Name=SAL_pre^Name=SAL_notref^Name=SAL_null; p1=__no^Name=SAL_valid^Name=SAL_deref^Name=SAL_access; p1=0x1^Name=SAL_end")] UIntPtr dwLength);