AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

GetFileTitle

The GetFileTitle function returns the name of the file identified by the lpszFile parameter.

VB4-32,5,6
Declare Function GetFileTitle Lib "comdlg32.dll" Alias "GetFileTitleA" (ByVal lpszFile As String, ByVal lpszTitle As String, ByVal cbBuf As Integer) As Integer

VB.NET
System.IO.FileInfo.Name

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Comdlg32

Parameter Information
· lpszFile
Pointer to the name and location of a file.

· lpszTitle
Pointer to a buffer into which the function is to copy the name of the file.

· cbBuf
Specifies the length, in characters, of the buffer pointed to by the lpszTitle parameter.

Return Values
If the function succeeds, the return value is zero.

If the filename is invalid, the return value is a negative number.

If the buffer pointed to by the lpszTitle parameter is too small, the return value is a positive integer that specifies the required buffer size, in bytes (ANSI version) or characters (Unicode version). The required buffer size includes the terminating null character.

Examples

Related Functions

No VB.NET Example Found

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/