objbase.h header

This header is used by multiple technologies. For more information, see:

objbase.h contains the following programming interfaces:

Functions

 
BindMoniker

Locates an object by means of its moniker, activates the object if it is inactive, and retrieves a pointer to the specified interface on that object.
CLSIDFromProgIDEx

The CLSIDFromProgIDEx function (objbase.h) triggers automatic installation if the COMClassStore policy is enabled.
CoAllowSetForegroundWindow

This function passes the foreground privilege (the privilege to set the foreground window) from one process to another. The process that has the foreground privilege can call this function to pass that privilege on to a local COM server process.
CoDosDateTimeToFileTime

Converts the MS-DOS representation of the time and date to a FILETIME structure used by Windows.
CoFileTimeNow

The CoFileTimeNow function (objbase.h) returns the current time as a FILETIME structure.
CoFileTimeToDosDateTime

Converts a FILETIME into MS-DOS date and time values.
CoFreeAllLibraries

Frees all the DLLs that have been loaded with the CoLoadLibrary function (called internally by CoGetClassObject), regardless of whether they are currently in use.
CoFreeLibrary

Frees a library that, when loaded, was specified to be freed explicitly.
CoGetInstanceFromFile

Creates a new object and initializes it from a file using IPersistFile::Load.
CoGetInstanceFromIStorage

Creates a new object and initializes it from a storage object through an internal call to IPersistFile::Load.
CoGetObject

Converts a display name into a moniker that identifies the object named, and then binds to the object identified by the moniker.
CoGetSystemSecurityPermissions

Returns the default values of the Security Descriptors of the machine-wide launch and access permissions, as well as launch and access limits.
CoInitialize

Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA).
CoInstall

Installs the requested COM server application.
CoIsOle1Class

Determines whether the specified CLSID represents an OLE 1 object.
CoLoadLibrary

Loads a specific DLL into the caller's process.
CoRegisterChannelHook

Registers a channel hook.
CoRegisterInitializeSpy

Registers an implementation of the IInitializeSpy interface. The IInitializeSpy interface is defied to allow developers to perform initialization and cleanup on COM apartments.
CoRegisterMallocSpy

Registers an implementation of the IMallocSpy interface, thereafter requiring OLE to call its wrapper methods around every call to the corresponding IMalloc method.
CoRegisterMessageFilter

Registers with OLE the instance of an IMessageFilter interface, which is to be used for handling concurrency issues on the current thread.
CoRevokeInitializeSpy

Revokes a registered implementation of the IInitializeSpy interface.
CoRevokeMallocSpy

Revokes a registered IMallocSpy object.
CoTreatAsClass

Establishes or removes an emulation, in which objects of one class are treated as objects of a different class.
CreateAntiMoniker

Creates and returns a new anti-moniker.
CreateBindCtx

Returns a pointer to an implementation of IBindCtx (a bind context object). This object stores information about a particular moniker-binding operation.
CreateClassMoniker

Creates a class moniker that refers to the specified class.
CreateDataAdviseHolder

The CreateDataAdviseHolder function (objbase.h) retrieves a pointer to the OLE implementation of IDataAdviseHolder on the data advise holder object.
CreateDataCache

Retrieves a pointer to a new instance of an OLE-provided implementation of a data cache.
CreateFileMoniker

Creates a file moniker based on the specified path.
CreateGenericComposite

Performs a generic composition of two monikers and supplies a pointer to the resulting composite moniker.
CreateItemMoniker

Creates an item moniker that identifies an object within a containing object (typically a compound document).
CreateObjrefMoniker

Creates an OBJREF moniker based on a pointer to an object.
CreatePointerMoniker

Creates a pointer moniker based on a pointer to an object.
GetClassFile

Returns the CLSID associated with the specified file name.
GetRunningObjectTable

Returns a pointer to the IRunningObjectTable interface on the local running object table (ROT).
IsEqualGUID

The IsEqualGUID macro (objbase.h) determines whether two GUIDs are equal.
MkParseDisplayName

Converts a string into a moniker that identifies the object named by the string.
MonikerCommonPrefixWith

Creates a new moniker based on the common prefix that this moniker (the one comprising the data of this moniker object) shares with another moniker.
MonikerRelativePathTo

Provides a moniker that, when composed onto the end of the first specified moniker (or one with a similar structure), yields the second specified moniker.
StgGetIFillLockBytesOnFile

Opens a wrapper object on a temporary file.
StgGetIFillLockBytesOnILockBytes

Creates a new wrapper object on a byte array object provided by the caller.
StgOpenAsyncDocfileOnIFillLockBytes

Opens an existing root asynchronous storage object on a byte-array wrapper object provided by the caller.
StgOpenLayoutDocfile

Opens a compound file on an ILockBytes implementation that is capable of monitoring sector data.

Enumerations

 
COINIT

Determines the concurrency model used for incoming calls to objects created by this thread. This concurrency model can be either apartment-threaded or multithreaded.
COMSD

Determines the type of COM security descriptor to get when calling CoGetSystemSecurityPermissions.