[This is preliminary documentation and subject to change.]
Because MOF files are compiled in the context of a namespace, it is necessary to identify the namespace into which the classes and instances defined in the MOF file should be placed. A namespace can be specified using either the following preprocessor command or the -N switch on the MOF compiler command line. In either case, the namespace path must be a fully qualified path or a path that is relative to the current namespace. The following statements show how to specify the SMIR namespace using first a full path and then a relative path:
// Full path to the SMIR namespace
#pragma namespace("\\\\.\\root\\smir\\SMIR")
// Relative path to the SMIR namespace
#pragma namespace ("SMIR")