COMGetFileObject
DFCOM Subroutine: Passes a file name and returns a
pointer to the IDispatch interface of an Automation object that can manipulate the file.
Modules: USE DFCOM
Syntax
- CALL COMGetFileObject (filename, idispatch,
status)
- filename
The path of the file of type CHARACTER*(*).
- idispatch
An output argument that returns the object's
IDispatch interface pointer. Must be of type INTEGER(4)
on ia32 processors; INTEGER(8) on ia64 processors.
- status
The status of the operation. It can be any status returned by
the CreateBindCtx or MkParseDisplayName routines, or the
IMoniker::BindToObject method. Must be of type INTEGER(4).
See Also:
CreateBindCtx, MkParseDisplayName,
and IMonker::BindToObject in the Win32 SDK