Sujoan,
Please don't multipost to different groups.
>public int QueryStatus(ref Guid pguidCmdGroup, int cCmds, IntPtr
>prgCmds, IntPtr pCmdText)
It would be easier if you changed the signature to
public int QueryStatus(ref Guid pguidCmdGroup, int cCmds, [In, Out]
ref OLECMD prgCmds, IntPtr pCmdText)
>I want to set the value of cmdf. How to do it?
OLECMD ocmd = Marshal.PtrToStructure(prgCmds,typeof(OLECMD));
ocmd.cmdf = 42;
Marshal.StructureToPtr(ocmd, prgCmds, false);
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.