Share via


CWinApp::RunEmbedded

Call this function to determine whether the "/Embedding" or "-Embedding" option is present, which indicates whether the server application was launched by a client application.

BOOL RunEmbedded( );

Return Value

Nonzero if the option was found; otherwise 0.

Remarks

If present, the option is removed from the command line. For more information on embedding, see the article Servers: Implementing a Server.

Requirements

Header: afxwin.h

See Also

Reference

CWinApp Class

Hierarchy Chart

CWinApp::RunAutomated

Other Resources

CWinApp Members