February 19th, 2011, 04:44 PM
Sometimes I hate how these API's are designed. Can someone tell me what OFSTRUCT is and how to declare it? According to MSDN for OpenFile() ...
I understand the first and third parameter except this one, anyone care to enlighten me on the matter? Thanx.
A pointer to the OFSTRUCT structure that receives information about a file when it is first opened.
The structure can be used in subsequent calls to the OpenFile function to see an open file.
The OFSTRUCT structure contains a path string member with a length that is limited to OFS_MAXPATHNAME characters, which is 128 characters. Because of this, you cannot use the OpenFile function to open a file with a path length that exceeds 128 characters. The CreateFile function does not have this path length limitation.
February 20th, 2011, 02:48 AM
Re: WINAPI OpenFile
Anyhow, OpenFile is an obsolete function:
Only use this function with 16-bit versions of Windows. For newer applications, use the CreateFile
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!