Click here to Skip to main content
16,008,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to hide c# windows Application from windows task manager processess list..(windows 2000) Pin
Stephane Rodriguez.18-Aug-02 4:39
Stephane Rodriguez.18-Aug-02 4:39 
GeneralRe: how to hide c# windows Application from windows task manager processess list..(windows 2000) Pin
nitro66618-Aug-02 6:07
nitro66618-Aug-02 6:07 
AnswerRe: how to hide c# windows Application from windows task manager processess list..(windows 2000) Pin
Stephane Rodriguez.18-Aug-02 4:51
Stephane Rodriguez.18-Aug-02 4:51 
GeneralEvents from a Remote Object Pin
16-Aug-02 10:12
suss16-Aug-02 10:12 
GeneralRe: Events from a Remote Object Pin
Sijin17-Aug-02 1:39
Sijin17-Aug-02 1:39 
GeneralIdentifying struct type from pointer Pin
leppie16-Aug-02 9:52
leppie16-Aug-02 9:52 
GeneralRe: Identifying struct type from pointer Pin
Stephane Rodriguez.16-Aug-02 10:15
Stephane Rodriguez.16-Aug-02 10:15 
GeneralRe: Identifying struct type from pointer Pin
leppie16-Aug-02 11:04
leppie16-Aug-02 11:04 
StephaneRodriguez wrote:
int GetParam(ref object param).

The function takes a pointer as an argument, not sure if this will work.

Here's what I make from MSDN:

1. Declare each struct as a formatted class, iow apply StructLayout.Sequential. As I dont know the Type of the returned struct im forced to use a class.

2. My implementation:

public object Parameters 
{
   get 
   {
	IntPtr paramptr = IntPtr.Zero;
	int result = GetFunction( paramptr);
	object param = null;
	Marshal.PtrToStructure(paramptr, param); // ????
	return param;
   }
   set 
   {
	IntPtr paramptr = IntPtr.Zero;
	Marshal.StructureToPtr(value, paramptr, true);
	int result = SetFunction( paramptr);
   }
}


Dont know if this will work yet Frown | :( but it does compile Smile | :) . Should be able to test soon.

Thanx


MYrc : A .NET IRC client with C# Plugin Capabilities. See
http://sourceforge.net/projects/myrc
for more info. Big Grin | :-D
GeneralDll and HINSTANCE Pin
Nish Nishant16-Aug-02 7:38
sitebuilderNish Nishant16-Aug-02 7:38 
GeneralRe: Dll and HINSTANCE Pin
albean16-Aug-02 7:54
albean16-Aug-02 7:54 
GeneralRe: Dll and HINSTANCE Pin
Nish Nishant16-Aug-02 8:09
sitebuilderNish Nishant16-Aug-02 8:09 
GeneralRe: Dll and HINSTANCE Pin
leppie16-Aug-02 8:33
leppie16-Aug-02 8:33 
GeneralRe: Dll and HINSTANCE Pin
Nish Nishant16-Aug-02 9:48
sitebuilderNish Nishant16-Aug-02 9:48 
GeneralRe: Dll and HINSTANCE Pin
leppie16-Aug-02 10:49
leppie16-Aug-02 10:49 
GeneralI'm becoming crazy about keys Pin
Anonymous16-Aug-02 5:49
Anonymous16-Aug-02 5:49 
GeneralRe: I'm becoming crazy about keys Pin
leppie16-Aug-02 6:30
leppie16-Aug-02 6:30 
GeneralRe: I'm becoming crazy about keys Pin
nitro66618-Aug-02 6:34
nitro66618-Aug-02 6:34 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson16-Aug-02 8:41
James T. Johnson16-Aug-02 8:41 
GeneralRe: I'm becoming crazy about keys Pin
nitro66618-Aug-02 9:23
nitro66618-Aug-02 9:23 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson18-Aug-02 9:24
James T. Johnson18-Aug-02 9:24 
GeneralRe: I'm becoming crazy about keys Pin
leppie19-Aug-02 0:00
leppie19-Aug-02 0:00 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson20-Aug-02 5:06
James T. Johnson20-Aug-02 5:06 
GeneralRe: I'm becoming crazy about keys Pin
leppie20-Aug-02 5:25
leppie20-Aug-02 5:25 
GeneralRe: I'm becoming crazy about keys Pin
James T. Johnson20-Aug-02 5:32
James T. Johnson20-Aug-02 5:32 
GeneralRe: I'm becoming crazy about keys Pin
leppie20-Aug-02 5:45
leppie20-Aug-02 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.