Click here to Skip to main content
15,911,891 members
Home / Discussions / C#
   

C#

 
GeneralReading Outlook Attachments using MAPI33 wrapper dll using C# Pin
keshavcn9-Feb-05 4:08
keshavcn9-Feb-05 4:08 
General.NET remoting error Pin
Member 16488299-Feb-05 3:49
Member 16488299-Feb-05 3:49 
GeneralRe: .NET remoting error Pin
S. Senthil Kumar9-Feb-05 8:43
S. Senthil Kumar9-Feb-05 8:43 
GeneralLogon User Pin
sharathgowda9-Feb-05 0:50
sharathgowda9-Feb-05 0:50 
GeneralRe: Logon User Pin
Mike Dimmick9-Feb-05 2:30
Mike Dimmick9-Feb-05 2:30 
GeneralRe: Logon User Pin
sharathgowda9-Feb-05 18:46
sharathgowda9-Feb-05 18:46 
GeneralRe: Logon User Pin
Heath Stewart11-Feb-05 7:05
protectorHeath Stewart11-Feb-05 7:05 
GeneralTabcontrol - transparent Pin
Member 13542768-Feb-05 23:49
Member 13542768-Feb-05 23:49 
GeneralUI control components for .Net Pin
ppp0018-Feb-05 23:16
ppp0018-Feb-05 23:16 
GeneralRe: UI control components for .Net Pin
Colin Angus Mackay8-Feb-05 23:58
Colin Angus Mackay8-Feb-05 23:58 
Generalmapi components for .net Pin
ppp0018-Feb-05 23:13
ppp0018-Feb-05 23:13 
QuestionHow to add Check Boxes for Extra Column in a DataGrid? Pin
pubududilena8-Feb-05 20:32
pubududilena8-Feb-05 20:32 
AnswerRe: How to add Check Boxes for Extra Column in a DataGrid? Pin
Christian Graus9-Feb-05 9:37
protectorChristian Graus9-Feb-05 9:37 
Generalget URL !!!! Pin
students552 university8-Feb-05 19:41
students552 university8-Feb-05 19:41 
GeneralRe: get URL !!!! Pin
Anonymous9-Feb-05 7:13
Anonymous9-Feb-05 7:13 
GeneralRe: get URL !!!! Pin
Heath Stewart9-Feb-05 15:04
protectorHeath Stewart9-Feb-05 15:04 
GeneralRe: get URL !!!! Pin
students552 university11-Feb-05 6:54
students552 university11-Feb-05 6:54 
GeneralRe: get URL !!!! Pin
Heath Stewart11-Feb-05 7:03
protectorHeath Stewart11-Feb-05 7:03 
GeneralIContextMenu Shell Extension - HandleMenuMsg Pin
LoKi_za8-Feb-05 19:38
LoKi_za8-Feb-05 19:38 
GeneralRe: IContextMenu Shell Extension - HandleMenuMsg Pin
Wraith29-Feb-05 1:33
Wraith29-Feb-05 1:33 
GeneralRe: IContextMenu Shell Extension - HandleMenuMsg Pin
LoKi_za9-Feb-05 1:42
LoKi_za9-Feb-05 1:42 
GeneralRe: IContextMenu Shell Extension - HandleMenuMsg Pin
Wraith29-Feb-05 2:26
Wraith29-Feb-05 2:26 
Can you privode a link, or tell me how to find that definition you used? Because it seems to be contrary to the documentation i've read. I also couln'dt find a useful implementation of IContextMenu and provided my own. While i cant claim its perfect i've not had any problems with the shell crashing in quite a while now so i think i'm at or close to a correct definition. I'd also be interested to see those articles, i've read around COM interop articles a bit lately and i've not found any that specifically mentioned the redefinition argument.

IContextMenu2.HandleMenuMsg is defined as
HRESULT HandleMenuMsg(UINT uMsg, WPARAM wParam, LPARAM lParam);
In c# i'd probably make that
[PreserveSig] int HandleMenuMsg(uint uMsg, IntPtr wParam,IntPtr lParam);
though of course i'd have to look up the header definitions of LPARAM and WPARAM to be certain of their size/type. Without PreserveSig that would return void instead of int and if you have an error you'll have to throw an exception with an hresul generated using the Marshal class functions.

In my limited experience if you do something wrong with your marshalling you end up corrupting the shell memory and eventually it'll either start to behave very oddly or it'll just crash unexpectedly.
GeneralRe: IContextMenu Shell Extension - HandleMenuMsg Pin
LoKi_za9-Feb-05 2:35
LoKi_za9-Feb-05 2:35 
GeneralRe: IContextMenu Shell Extension - HandleMenuMsg Pin
Wraith29-Feb-05 3:10
Wraith29-Feb-05 3:10 
GeneralRe: IContextMenu Shell Extension - HandleMenuMsg Pin
LoKi_za9-Feb-05 4:08
LoKi_za9-Feb-05 4: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.