共用方式為


CAtlServiceModuleT::m_bService

Flag indicating the program is running as a service.

BOOL m_bService;

Remarks

Used to distinguish a Service EXE from an Application EXE.

Requirements

Header: atlbase.h

See Also

Reference

CAtlServiceModuleT Class

Other Resources

CAtlServiceModuleT Members