BIND_OPTS
Contains
parameters used during a moniker-binding operation. The BIND_OPTS2
If you re a
moniker client (that is, you use a moniker to acquire an interface pointer to
an object), you typically do not need to specify values for the fields of this
structure. The CreateBindCtx
The BIND_OPTS
structure is defined in OBJIDL.IDL.
typedef struct tagBIND_OPTS
{
DWORD cbStruct;
DWORD grfFlags;
DWORD grfMode;
DWORD dwTickCountDeadline;
} BIND_OPTS, *LPBIND_OPTS;
Members
cbStruct
Size of this
structure in bytes (that is, the size of the BIND_OPTS structure).
grfFlags
Flags that
control aspects of moniker binding operations. This value is any combination of
the bit flags in the BINDFLAGS enumeration. New values may be defined in
the future, so moniker implementations should ignore any bits in this field
that they do not understand. The CreateBindCtx6NHJ.W6 function initializes this field to zero.
grfMode
Flags that
should be used when opening the file that contains the object identified by the
moniker. The values are taken from the STGM
dwTickCountDeadline
Clock time
(in milliseconds, as returned by the GetTickCount function) by which the
caller would like the binding operation to be completed. This member lets the
caller limit the execution time of an operation when speed is of primary
importance. A value of zero indicates that there is no deadline. Callers most
often use this capability when calling the IMoniker::GetTimeOfLastChange
Typical
deadlines allow for a few hundred milliseconds of execution. This deadline is a
recommendation, not a requirement; however, operations that exceed their deadline
by a large amount may cause delays for the end user. Each moniker
implementation should try to complete its operation by the deadline, or fail
with the error MK_E_EXCEEDEDDEADLINE.
If a binding
operation exceeds its deadline because one or more objects that it needs are
not running, the moniker implementation should register the objects responsible
in the bind context using the IBindCtx::RegisterObjectParam
The GetTickCount
function indicates the number of milliseconds since system startup, and wraps
back to zero after 2^31 milliseconds. Consequently, callers should be careful
not to inadvertently pass a zero value (which indicates no deadline), and
moniker implementations should be aware of clock wrapping problems (see the GetTickCount
function for more information).
See Also