Hi there,
I've implemented a local system hook to suppress certain windows beeing
displayed by the axWebbrowser control. Now I need some more information
before I can decide, whether to suppress a window or not.
My callback function get a long pointer (lParam) to a structure which
contains further information. This structure is described at MSN as follows:
typedef struct tagCREATESTRUCT {
LPVOID lpCreateParams;
HINSTANCE hInstance;
HMENU hMenu;
HWND hwndParent;
int cy;
int cx;
int y;
int x;
LONG style;
LPCTSTR lpszName;
LPCTSTR lpszClass;
DWORD dwExStyle;
} CREATESTRUCT, *LPCREATESTRUCT;
I am trying to reference the structure by using the
Marshal.PtrToStructure(lParam, t.GetType()) method, where t is a local
var to the structure. But I don't seem to manage a correct
implementation of the above structure.
I'd really appreciate any help on this.
regards.