-
CreateFile API function
Did Anybody use API function CreateFile in VB ?
I have problem with SECURITY_ATTRIBUTES parameter. I don't know what send in this function instead of that structure.
fHandle = CreateFile( FileName, GENERIC_READ, FILE_SHARE_READ, ByVal CLng(0), OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)
Like this don't work, return fHandle = -1
Please help with example.
-
I pass null with "ByVal 0&".
-
You could even avoid having to include that in your declaration by passing the argument as "Any" rather than "SECURITY_ATTRIBUTE"