Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Runs the service.
HRESULT Run(
int nShowCmd = SW_HIDE
) throw( );
Parameters
- nShowCmd
Specifies how the window is to be shown. This parameter can be one of the values discussed in the WinMain section. The default value is SW_HIDE.
Return Value
Returns S_OK on success, or an error HRESULT on failure.
Remarks
After being called, Run calls CAtlServiceModuleT::PreMessageLoop, CAtlExeModuleT::RunMessageLoop, and CAtlExeModuleT::PostMessageLoop.
Requirements
Header: atlbase.h