Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: More on C# / DX9 Pin
Philip Fitzsimons2-Jan-03 21:39
Philip Fitzsimons2-Jan-03 21:39 
GeneralRe: More on C# / DX9 Pin
Andreas Philipson5-Jan-03 10:06
Andreas Philipson5-Jan-03 10:06 
GeneralRe: More on C# / DX9 Pin
Paul Riley5-Jan-03 10:20
Paul Riley5-Jan-03 10:20 
QuestionPassing an interface from C# to COM? Pin
Bog2-Jan-03 9:44
Bog2-Jan-03 9:44 
AnswerRe: Passing an interface from C# to COM? Pin
Anonymous2-Jan-03 10:10
Anonymous2-Jan-03 10:10 
AnswerRe: Passing an interface from C# to COM? Pin
James T. Johnson2-Jan-03 16:57
James T. Johnson2-Jan-03 16:57 
GeneralRe: Passing an interface from C# to COM? Pin
Bog2-Jan-03 17:13
Bog2-Jan-03 17:13 
Generalclosing a .exe from within a seperate .exe Pin
jtmtv182-Jan-03 8:25
jtmtv182-Jan-03 8:25 
GeneralRe: closing a .exe from within a seperate .exe Pin
Ranjan Banerji2-Jan-03 8:36
Ranjan Banerji2-Jan-03 8:36 
GeneralRe: closing a .exe from within a seperate .exe Pin
jtmtv182-Jan-03 8:48
jtmtv182-Jan-03 8:48 
GeneralRe: closing a .exe from within a seperate .exe Pin
Ranjan Banerji2-Jan-03 9:00
Ranjan Banerji2-Jan-03 9:00 
GeneralRe: closing a .exe from within a seperate .exe Pin
-G-4-Jan-03 6:28
-G-4-Jan-03 6:28 
GeneralRe: closing a .exe from within a seperate .exe Pin
Nick Parker2-Jan-03 9:06
protectorNick Parker2-Jan-03 9:06 
Ranjan Banerji wrote:
This could be of help. If C# does have a function, I will probably be calling some Windows API. Just a hunch.

You would need to use P/Invoke to send the WM_CLOSE message in C#. You will need the handle to the current running executable for this as well.
public const int WM_CLOSE = 0x0010; 
//........
[DllImport("user32.dll",CharSet=CharSet.Auto)]
static public extern long SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);





Nick Parker

You see the Standards change. - Fellow co-worker


QuestionRestricted access to properties? Pin
Nnamdi Onyeyiri2-Jan-03 7:01
Nnamdi Onyeyiri2-Jan-03 7:01 
AnswerRe: Restricted access to properties? Pin
James T. Johnson2-Jan-03 9:35
James T. Johnson2-Jan-03 9:35 
GeneralRe: Restricted access to properties? Pin
Nnamdi Onyeyiri2-Jan-03 11:55
Nnamdi Onyeyiri2-Jan-03 11:55 
Generalmessage box stuff Pin
jtmtv182-Jan-03 6:59
jtmtv182-Jan-03 6:59 
GeneralRe: message box stuff Pin
Ray Cassick2-Jan-03 7:55
Ray Cassick2-Jan-03 7:55 
GeneralRe: message box stuff Pin
Brian Olej2-Jan-03 14:23
Brian Olej2-Jan-03 14:23 
GeneralArray Serialization - kinda urgent Pin
Mr BallyDaHob2-Jan-03 5:18
Mr BallyDaHob2-Jan-03 5:18 
GeneralQuestion about inherited/custom control.. Pin
Randy Williams2-Jan-03 5:08
Randy Williams2-Jan-03 5:08 
GeneralRe: Question about inherited/custom control.. Pin
leppie2-Jan-03 9:35
leppie2-Jan-03 9:35 
GeneralRe: Question about inherited/custom control.. Pin
Randy Williams2-Jan-03 9:41
Randy Williams2-Jan-03 9:41 
GeneralArchitecture Design Advice Pin
Bill West2-Jan-03 5:07
Bill West2-Jan-03 5:07 
GeneralRe: Architecture Design Advice Pin
Anonymous2-Jan-03 10:08
Anonymous2-Jan-03 10:08 

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.