13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

c H A p T E R4Functions directoryThis chapter contains an alphabetical list of functions from the MicrosoftWindows application programming interface (API). The documentationfor each function contains a line illustrating correct syntax, a statementabout the function's purpose, a description of its input parameters, and adescription of its return value. The documentation for some functionscontains additional, important information that an application developerneeds in order to use the function.AccessResourceSyntaxint AccessResource(hInstance, hResInfo)function AccessResource(Instance, ResInfo: THandle): Integer;This function opens the specified resource file and moves the file pointerto the beginning of the specified resource, letting an application read theresource from the file. The AccessResource function supplies a DOS filehandle that can be used in subsequent file-read calls to load the resource.The file is opened for reading only.Applications that use this function must close the resource file by callingthe _Iclose function after reading the resource.Parameters hlnstance HANDLE Identifies the instance of the module whoseexecutable file contains the resource.hReslnfoHANDLE Identifies the desired resource. This handleshould be created by using the FindResource function.Chapter 4, Functions directory147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!