# CREATESTRUCT

### C# Definition:

```cs
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
    public struct CREATESTRUCT
    {
        public IntPtr lpCreateParams;
        public IntPtr hInstance;
        public IntPtr hMenu;
        public IntPtr hwndParent;
        public int cy;
        public int cx;
        public int y;
        public int x;
        public int style;
        public IntPtr lpszName;
        public IntPtr lpszClass;
        public int dwExStyle;
    }
```

### VB Definition:

```cs
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
    Public Structure CREATESTRUCT
        Public lpCreateParams As IntPtr
        Public hInstance As IntPtr
        Public hMenu As IntPtr
        Public hwndParent As IntPtr
        Public cy As Integer
        Public cx As Integer
        Public y As Integer
        Public x As Integer
        Public style As Integer
        Public lpszName As IntPtr
        Public lpszClass As IntPtr
        Public dwExStyle As Integer
    End Structure
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pinvokeisalive.gitbook.io/pinvoke/directory/structures/createstruct.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
