Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Robert Bielik <email@hidden>
- Date: Fri, 09 Sep 2011 15:30:59 +0200
Evan Schoffstall skrev 2011-09-09 14:21:
Forgot to send to the list (I hate my mail application)
It's not your mail application, it is how this list is setup. And I too hate it. The sole purpose of a _mailing list_ is to communicate using it. Setting the list so that replies goes to the original poster and not to the list defeats that whole purpose. I'm on very many mailing lists, and fortunately this one is one of the few exhibiting this "problem". Sorry for the rant.
/Rob
--
Evan Schoffstall
Sent with Sparrow <http://www.sparrowmailapp.com>
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_tcurrentInfo;
mach_msg_type_number_tcurrentInfoSize =VM_REGION_BASIC_INFO_COUNT_64;
mach_vm_size_tcurrentBlockSize =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
_______________________________________________
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