2025-11-28 00:35:46 +09:00

55 lines
1.6 KiB
C

//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
//
#include <MI.h>
#include "MSFT_WindowsServiceManager.h"
#include "WindowsServiceManager.h"
void MI_CALL MSFT_WindowsServiceManager_Load(
_Outptr_result_maybenull_ MSFT_WindowsServiceManager_Self** self,
_In_opt_ MI_Module_Self* selfModule,
_In_ MI_Context* context)
{
MI_UNREFERENCED_PARAMETER(selfModule);
*self = NULL;
MI_Context_PostResult(context, MI_RESULT_OK);
}
void MI_CALL MSFT_WindowsServiceManager_Unload(
_In_opt_ MSFT_WindowsServiceManager_Self* self,
_In_ MI_Context* context)
{
MI_UNREFERENCED_PARAMETER(self);
MI_Context_PostResult(context, MI_RESULT_OK);
}
void MI_CALL MSFT_WindowsServiceManager_Invoke_GetWindowsServices(
_In_opt_ MSFT_WindowsServiceManager_Self* self,
_In_ MI_Context* context,
_In_opt_z_ const MI_Char* nameSpace,
_In_opt_z_ const MI_Char* className,
_In_opt_z_ const MI_Char* methodName,
_In_ const MSFT_WindowsServiceManager* instanceName,
_In_opt_ const MSFT_WindowsServiceManager_GetWindowsServices* in)
{
MI_Result result;
MI_UNREFERENCED_PARAMETER(self);
MI_UNREFERENCED_PARAMETER(nameSpace);
MI_UNREFERENCED_PARAMETER(className);
MI_UNREFERENCED_PARAMETER(methodName);
MI_UNREFERENCED_PARAMETER(instanceName);
result = Invoke_GetWindowsServices(context, in);
MI_Context_PostResult(context, result);
}