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.

GetTabbedTextExtentIf the nTabPositions parameter is zero and the IpnTabStopPositionsparameter is NULL, tabs are expanded to eight average character widths.If nTabPositions is 1, the tab stops will be separated by the distancespecified by the first value in the array to which IpnTabStopPositionspoints.If IpnTabStopPositions points to more than a single value, then a tab stop isset for each value in the array, up to the number specified bynTabPositions.GetTempDriveSyntaxParametersReturn valueBYTE GetTempDrive(cDriveLetter)function GetTempDrive(DriveLetter: Char): Char;This function takes a drive letter or zero and returns a letter that specifiesthe optimal drive for a temporary file (the disk drive that can provide thebest access time during disk operations with a temporary file).The GetTempDrive function returns the drive letter of a hard disk if thesystem has one. If the cDriveLetter parameter is zero, the function returnsthe drive letter of the current disk; if cDriveLetter is a letter, the functionreturns the letter of that drive or the letter of another available drive.cDriveLetter BYTE Specifies a disk-drive letter.The return value specifies the optimal disk drive for temporary files.GetTempFileNameSyntaxint GetTempFileName(cDriveLetter, lpPrefixString, wUnique,lpTempFileName)function GetTempFileName(DriveLetter: Char; PrefixString: PChar;Unique: Word; TempFileName: PChar): Integer;This function creates a temporary filename of the following form:drive: \path \prefixuuuu.tmpIn this syntax line, drive is the drive letter specified by the cDriveLetterparameter; path is the pathname of the temporary file (either the rootdirectory of the specified drive or the directory specified in the TEMPenvironment variable); prefix is all the letters (up to the first three) of thestring pointed to by the IpPrefixString parameter; and uuuu is thehexadecimal value of the number specified by the wUnique parameter.Chapter 4, Functions directory 351

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

Saved successfully!

Ooh no, something went wrong!