George
January 12th, 1999, 05:43 PM
Hi: there
Just a naive question:
Is there an API function can create new file with any extension and path?
thanks
George
Gabriel Landivar
January 28th, 1999, 03:36 PM
This function should do what you are looking for.
There are several constanst that go with this, you can look them up in the Programmer's Guide to Win32 API.
Public Declare Function CreateFile& Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long)