ATL Library Reference  

ATL Functions Alphabetical Reference

In this section, reference topics for the ATL global functions are organized alphabetically. To find a particular function by category, see ATL Functions.

Function Description
AtlAdvise Creates a connection between an object's connection point and a client's sink.
AtlAdviseSinkMap Call this function to advise or unadvise all entries in the object's sink event map.
AtlAxAttachControl Attaches a previously created control to the specified window.
AtlAxCreateControlEx Creates an ActiveX control, initializes it, and hosts it in the specified window. An interface pointer and event sink for the new control can also be created.
AtlAxCreateControlLicEx Creates a licensed ActiveX control, initializes it, and hosts it in the specified window. An interface pointer and event sink for the new control can also be created.
AtlAxCreateControlLic Creates a licensed ActiveX control, initializes it, and hosts it in the specified window.
AtlAxCreateControl Creates an ActiveX control, initializes it, and hosts it in the specified window.
AtlAxCreateDialog Creates a modeless dialog box from a dialog template provided by the user.
AtlAxDialogBox Creates a modal dialog box from a dialog template provided by the user.
AtlAxGetControl Obtains a direct interface pointer to the control contained inside a specified window given its handle.
AtlAxGetHost Obtains a direct interface pointer to the container for a specified window (if any), given its handle.
AtlAxWinInit This function initializes ATL's control hosting code by registering the "AtlAxWin7" and "AtlAxWinLic7" window classes plus a couple of custom window messages.
AtlAxWinTerm This function uninitializes ATL's control hosting code by unregistering the "AtlAxWin7" and "AtlAxWinLic7" window classes.
AtlComModuleGetClassObject This function is called to return the class factory.
AtlComModuleRegisterClassObjects This function is called to register class objects.
AtlComModuleRegisterServer This function is called to register every object in the object map.
AtlComModuleRevokeClassObjects This function is called to remove the class factory/factories from the Running Object Table.
AtlComModuleUnregisterServer This function is called to unregister every object in the object map.
AtlComPtrAssign Assigns an interface pointer to another interface pointer of the same type.
AtlComQIPtrAssign Assigns an interface pointer to another interface pointer of a different type.
AtlCreateTargetDC Creates a device context for the device specified in the DVTARGETDEVICE structure.
AtlFreeMarshalStream Releases the marshal data in the stream, then releases the stream pointer.
AtlGetDacl Call this function to retrieve the discretionary access-control list (DACL) information of a specified object.
AtlGetGroupSid Call this function to retrieve the group security identifier (SID) of an object.
AtlGetObjectSourceInterface Call this function to retrieve information about the default source interface of an object.
AtlGetOwnerSid Call this function to retrieve the owner security identifier (SID) of an object.
AtlGetSacl Call this function to retrieve the system access-control list (SACL) information of a specified object.
AtlGetSecurityDescriptor Call this function to retrieve the security descriptor of a given object.
AtlHiMetricToPixel Converts an object's size in HIMETRIC units (each unit is 0.01 millimeter) to a size in pixels on the screen device.
AtlHresultFromLastError Returns the calling thread's last-error code value in the form of an HRESULT.
AtlHresultFromWin32 Converts a Win32 error code into an HRESULT.
AtlInternalQueryInterface Retrieves a pointer to the requested interface.
AtlLoadTypeLib This function is called to load a type library.
AtlMarshalPtrInProc Creates a new stream object, writes the CLSID of the proxy to the stream, and marshals the specified interface pointer by writing the data needed to initialize the proxy into the stream.
AtlModuleRegisterServer Registers every object in the object map.
AtlModuleRegisterTypeLib Registers a type library.
AtlModuleUnregisterServerEx Unregisters every object in the object map.
AtlModuleUnregisterServer Unregisters every object in the object map. It is similar to AtlModuleUnregisterServerEx except that it cannot unregister the type library.
AtlModuleUnregisterTypeLib Unregisters a type library.
AtlPixelToHiMetric Converts an object's size in pixels on the screen device to a size in HIMETRIC units (each unit is 0.01 millimeter).
AtlRegisterTypeLib This function is called to register a type library.
AtlReportError Sets up the IErrorInfo interface to provide error information to clients of the object.
AtlSetChildSite Call this function to set the site of the child object to the IUnknown of the parent object.
AtlSetDacl Call this function to set the discretionary access-control list (DACL) information of a specified object.
AtlSetGroupSid Call this function to set the group security identifier (SID) of an object.
AtlSetOwnerSid Call this function to set the owner security identifier (SID) of an object.
AtlSetSacl Call this function to set the system access-control list (SACL) information of a specified object.
AtlThrowLastWin32 Call this function to signal an error based on the result of the Windows function GetLastError.
AtlThrow Call this function to signal an error based on a HRESULT status code.
AtlTraceLoadSettings Call this function to load trace settings from a file.
AtlTraceSaveSettings Call this function to save the current trace settings to a file.
AtlUnadvise Terminates the connection established through AtlAdvise.
AtlUnmarshalPtr Converts the stream's marshaling data into an interface pointer that can be used by the client.
AtlUnRegisterTypeLib This function is called to unregister a type library.
AtlUpdateRegistryFromResourceD This function is called to update the registry from the supplied resource.
AtlWaitWithMessageLoop Waits for the object to be signaled, meanwhile dispatching window messages as needed.
AtlWinModuleAddCreateWndData This function is used to initialize and add an _AtlCreateWndData structure.
AtlWinModuleExtractCreateWndData Call this function to extract an existing _AtlCreateWndData structure.
InlineIsEqualIUnknown Call this function, for the special case of testing for IUnknown.
RegistryDataExchange This function is called to read from, or write to, the system registry.
Sids::AccountOps Returns the DOMAIN_ALIAS_RID_ACCOUNT_OPS SID.
Sids::Admins Returns the DOMAIN_ALIAS_RID_ADMINS SID.
Sids::AnonymousLogon Returns the SECURITY_ANONYMOUS_LOGON_RID SID.
Sids::AuthenticatedUser Returns the SECURITY_AUTHENTICATED_USER_RID SID.
Sids::BackupOps Returns the DOMAIN_ALIAS_RID_BACKUP_OPS SID.
Sids::Batch Returns the SECURITY_BATCH_RID SID.
Sids::CreatorGroupServer Returns the SECURITY_CREATOR_GROUP_SERVER_RID SID.
Sids::CreatorGroup Returns the SECURITY_CREATOR_GROUP_RID SID.
Sids::CreatorOwnerServer Returns the SECURITY_CREATOR_OWNER_SERVER_RID SID.
Sids::CreatorOwner Returns the SECURITY_CREATOR_OWNER_RID SID.
Sids::Dialup Returns the SECURITY_DIALUP_RID SID.
Sids::Guests Returns the DOMAIN_ALIAS_RID_GUESTS SID.
Sids::Interactive Returns the SECURITY_INTERACTIVE_RID SID.
Sids::Local Returns the SECURITY_LOCAL_RID SID.
Sids::Network Returns the SECURITY_NETWORK_RID SID.
Sids::Null Returns the SECURITY_NULL_RID SID.
Sids::PowerUsers Returns the DOMAIN_ALIAS_RID_POWER_USERS SID.
Sids::PreW2KAccess Returns the DOMAIN_ALIAS_RID_PREW2KCOMPACCESS SID.