Exemplo n.º 1
0
        internal static MiResult Initialize(int p1, string p2, out InstanceHandle instanceHandle, out ApplicationHandle applicationHandle)
        {
			NativeCimApplication app = new NativeCimApplication();
			app.Id = p1;
			app.Target = p2;
			IntPtr appPtr = CimNativeApi.MarshalledObject.Create<NativeCimApplication>(app);
			applicationHandle = new ApplicationHandle(appPtr);
			NewInstance (applicationHandle, p2, null, out instanceHandle);
			return MiResult.OK;
        }
Exemplo n.º 2
0
        internal static MiResult Initialize(int p1, string p2, out InstanceHandle instanceHandle, out ApplicationHandle applicationHandle)
        {
            NativeCimApplication app = new NativeCimApplication();

            app.Id     = p1;
            app.Target = p2;
            IntPtr appPtr = CimNativeApi.MarshalledObject.Create <NativeCimApplication>(app);

            applicationHandle = new ApplicationHandle(appPtr);
            NewInstance(applicationHandle, p2, null, out instanceHandle);
            return(MiResult.OK);
        }