Jump to content

VRAMALLOCIN: Difference between revisions

From EDM2
Created page with "Input structure to GreEscape DEVESC_VRAMALLOC. Used for VRAM allocation and deallocation requests. ==Example Code== <PRE> typedef struct _VRAMALLOCIN { ULONG ulLength;..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
Input structure to GreEscape DEVESC_VRAMALLOC. Used for VRAM allocation and deallocation requests.  
Input structure to GreEscape DEVESC_VRAMALLOC. Used for VRAM allocation and deallocation requests.


==Example Code==
<PRE>
<PRE>
typedef struct _VRAMALLOCIN {
typedef struct _VRAMALLOCIN {
   ULONG    ulLength;    /* Length of VRAMALLOCIN data structure, in bytes. */
   ULONG    ulLength;    /* Length of VRAMALLOCIN data structure, in bytes. */
   ULONG    ulFlags;    /* Allocation request flag. */
   ULONG    ulFlags;    /* Allocation request flag. */
   ULONG    ulID;        /* Buffer ID. */
   ULONG    ulID;        /* Buffer ID. */
   ULONG    ulFunction;  /* Indicates allocation status. */
   ULONG    ulFunction;  /* Indicates allocation status. */
   ULONG    ulHandle;    /* VRAMREGISTER instance handle. */
   ULONG    ulHandle;    /* VRAMREGISTER instance handle. */
   ULONG    ulSize;      /* Size to allocate, in bytes. */
   ULONG    ulSize;      /* Size to allocate, in bytes. */
   ULONG    ulWidth;    /* Width of the image, in pels. */
   ULONG    ulWidth;    /* Width of the image, in pels. */
   ULONG    ulHeight;    /* Height of the image, in scanlines. */
   ULONG    ulHeight;    /* Height of the image, in scanlines. */
} VRAMALLOCIN;
} VRAMALLOCIN;



Latest revision as of 17:07, 5 April 2025

Input structure to GreEscape DEVESC_VRAMALLOC. Used for VRAM allocation and deallocation requests.

typedef struct _VRAMALLOCIN {
  ULONG     ulLength;    /* Length of VRAMALLOCIN data structure, in bytes. */
  ULONG     ulFlags;     /* Allocation request flag. */
  ULONG     ulID;        /* Buffer ID. */
  ULONG     ulFunction;  /* Indicates allocation status. */
  ULONG     ulHandle;    /* VRAMREGISTER instance handle. */
  ULONG     ulSize;      /* Size to allocate, in bytes. */
  ULONG     ulWidth;     /* Width of the image, in pels. */
  ULONG     ulHeight;    /* Height of the image, in scanlines. */
} VRAMALLOCIN;

typedef VRAMALLOCIN *PVRAMALLOCIN;