<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Windows Interface Reference: Resource structure</title> </head> <body> <h1>Resource </h1> <p>The Resource structure contains functions to load resources from a resource file. In many cases there are functions in other structures which will load the appropriate item from the resource file.</p> <pre>structure Resource : sig datatype ResourceType = RT_CURSOR | RT_BITMAP | RT_ICON | RT_MENU | RT_DIALOG | RT_STRING | RT_FONTDIR | RT_FONT | RT_ACCELERATOR | RT_RCDATA | RT_MESSAGETABLE | RT_GROUP_CURSOR | RT_GROUP_ICON | RT_VERSION | RT_DLGINCLUDE | RT_ANICURSOR | RT_ANIICON | RT_PLUGPLAY | RT_VXD type HRSRC type HRSRCGLOBAL type HINSTANCE datatype RESID = IdAsInt of int | IdAsString of string val MAKEINTRESOURCE : int -> RESID type HUPDATE val BeginUpdateResource : string * bool -> HUPDATE val EndUpdateResource : HUPDATE * bool -> unit val FindResource : HINSTANCE * RESID * ResourceType -> HRSRC val FindResourceEx : HINSTANCE * ResourceType * RESID * Locale.LANGID -> HRSRC val FreeLibrary : HINSTANCE -> bool val <a name="LoadLibrary">LoadLibrary</a> : string -> HINSTANCE val <a name="LoadResource">LoadResource</a> : HINSTANCE * HRSRC -> HRSRCGLOBAL val LoadString : HINSTANCE * RESID -> string val LockResource : HRSRCGLOBAL -> Word8Vector.vector val SizeofResource : HINSTANCE * HRSRC -> int val UpdateResource : HUPDATE * ResourceType * RESID * Locale.LANGID * Word8Vector.vector option -> unit end</pre> </body> </html>