Is there an API function can create new file with any extension and path?
Hi: there
Just a naive question:
Is there an API function can create new file with any extension and path?
thanks
George
Re: Is there an API function can create new file with any extension and path?
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)