Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Evan Schoffstall <email@hidden>
- Date: Fri, 09 Sep 2011 08:21:27 -0400
Forgot to send to the list (I hate my mail application)
--
Evan Schoffstall
Sent with Sparrow
On Friday, September 9, 2011 at 8:19 AM, Evan Schoffstall wrote:
Thank you, the following code comes out perfectly. Using 32 bit types with 64 is a big no-no. Unfortunately, the only documentation I referenced was Pocket Gnome's terrible coding structure and The Broken Zippers 2 page explanation of arguments (both were vm_region using the pre-mach syntax) For suture reference;
pid_t thePid = 47743;
mach_port_t currentTask;
kern_return_t kReturn;
kReturn = task_for_pid (mach_task_self(), thePid, ¤tTask);
if (kReturn == KERN_SUCCESS)
{
vm_region_basic_info_data_64_t currentInfo;
mach_msg_type_number_t currentInfoSize = VM_REGION_BASIC_INFO_COUNT_64;
mach_vm_size_t currentBlockSize = 0;
mach_vm_address_t currentAddress = 0;
mach_port_t currentObject = MACH_PORT_NULL;
kReturn = mach_vm_region(currentTask,¤tAddress,¤tBlockSize,VM_REGION_BASIC_INFO_64,(vm_region_info_64_t)¤tInfo,¤tInfoSize,¤tObject);
}
kernal is always returning 0, so I assume the values are being properly placed although I haven't checked.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden