13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MulDivPALETTEINDEXPALETTERGBRGBMultiplies two word-length values andthen divides the result by a third wordlengthvalue, returning the result roundedto the nearest integer.Converts an integer into a palette-indexCOLORREF value.Converts three values for red, green, andblue into a palette-relative RCBCOLORREF value.Converts three values for red, green, andblue into an explicit RCB COLORREFvalue.File I/O functionsFile I/O functions create, open, read from, write to, and closefiles. The following list briefly describes each file I/O function:FunctionGetDriveTypeGetSystem Di rectoryGetTempDriveGetTempFileNameGetWindowsDirectoryIcloseIcreat_II seek_Iopen_Iread_IwriteOpen FileSetHandleCountDescriptionDetermines whether a disk drive isremoveable, fixed, or remote.Retrieves the pathname of the Windowssystem subdirectory.Returns the letter of the optimal drive fortemporary file storage.Creates a temporary filename.Retrieves the pathname of the Windowsdirectory.Closes a file.Creates a new file or opens and truncatesan existing file.Positions the pointer to a file.Opens an existing file.Reads data from a file.Writes data in a file.Creates, opens, reopens, or deletes thespecified file.Changes the number of file handlesavailable to a task.Debugging functionsDebugging functions help locate programming errors in anapplication or library. The following briefly describes thesefunctions:144Software development kit

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

Saved successfully!

Ooh no, something went wrong!