Re: [Mono-dev] Altering our build system.

2010-05-23 Thread Mike Edenfield
On 5/20/2010 2:37 PM, Jonathan Chambers wrote: I've been looking at a MSBuild based build for the class libs (based upon Jonathan Pobst's MonkeyBuilder). To actually make the projects usable in visual studio, they need to be one of a list of well known project types. While MSBuild can handle

Re: [Mono-dev] {kinda OT} Linux equivalent of Win32 ReadProcessMemory...

2009-04-15 Thread Mike Edenfield
On 4/15/2009 12:33 PM, Martin Baulig wrote: What do you want to read from the process ? If you're just interested in the executable, you can also read /proc/PID/exe. If you just need a timestamp, you may check /proc/PID/exe, which is a symbolic link to the ELF file, and check its creation

Re: [Mono-dev] {kinda OT} Linux equivalent of Win32 ReadProcessMemory...

2009-04-14 Thread Mike Edenfield
On 4/14/2009 11:47 AM, Martin Baulig wrote: On Mon, 2009-04-13 at 10:45 -0400, Miguel de Icaza wrote: * Has anyone actually done something like this and run into non- obvious problems? I'm most concerned that there are some gotchas in how Linux manages memory, though if its just a matter of

Re: [Mono-dev] {kinda OT} Linux equivalent of Win32 ReadProcessMemory...

2009-04-13 Thread Mike Edenfield
On 4/13/2009 9:18 AM, Gladish, Jacob wrote: Is there a particular piece of memory you're looking for? Environmental variables, etc., or are you simply trying to read arbitrary bytes from another processes? From glibc's perspective it would be arbitrary memory, but there's a specific piece

Re: [Mono-dev] get mac address using system.management

2009-04-13 Thread Mike Edenfield
On 4/13/2009 1:50 PM, tooty wrote: so, can anyone tell me what is the wright method of managementclass that will let me get the network adapter properties? I don't believe any of the System.Management namespace is currently implemented, for exactly the reason you specified: WMI is way too

[Mono-dev] {kinda OT} Linux equivalent of Win32 ReadProcessMemory...

2009-04-12 Thread Mike Edenfield
I'm trying to port a utility from Windows that needs to read memory from a running application. It's using P/Invoke to call ReadProcessMemory, which obviously isn't going to work on Linux. Conceptually, I think this should be easy: use Process.GetProcessByName().Id to get the pid of my target

Re: [Mono-dev] CS0019 for value type != null

2008-04-08 Thread Mike Edenfield
Casey Marshall wrote: meaning `valuetype' would never be initialized. It's a little nit-picky, since I don't think this results in any real bugs, since the value types here are usually simple (e.g., Rectangle, DateTime), but it easily could. It almost seems like the buggy gmcs was doing a

Re: [Mono-dev] Interop with Native Libraries Question

2008-03-06 Thread Mike Edenfield
Sebi Onofrei wrote: Now, what I tried looks like this: *[DllImport (libraryName, EntryPoint = method_name, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] private static unsafe extern integer EXT_method_name(void* handle, out string name, out int

Re: [Mono-dev] Question on the C-C# translation of WinApi MSG struct.

2007-09-22 Thread Mike Edenfield
StApostol wrote: I am writing OpenTK, a game development toolkit which makes extensive use of P/Invoke calls. On the Windows platform, I encountered some strange behavior regarding the MSG struct. In winuser.h, MSG is defined like this: typedef struct tagMSG { HWND hwnd; UINT