OLE DB Programmer's Reference |
Writes a connection string.
HRESULT WriteStringToStorage( LPCOLESTR pwszFileName, LPCOLESTR pwszInitializationString, DWORD dwCreationDisposition);
Parameters
Return Code
pwszInitializationString was a null pointer.
dwCreationDisposition was an invalid value.
dwCreationDisposition was TRUNCATE_EXISTING, and the file indicated by pwszFileName was not found.
dwCreationDisposition was OPEN_EXISTING or TRUNCATE_EXISTING, and another caller has the file open.
dwCreationDisposition was CREATE_NEW, and the caller has insufficient permission to write to the directory.
Comments
The writing of the file will respect any file system flags on an existing file. For example, if the file is marked as read-only, the IDataInitialize::WriteStringToStorage method will fail and not overwrite the existing file.
1998-2001 Microsoft Corporation. All rights reserved.