WmiExecuteMethodA - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTWMI_H

/**
 * The WmiExecuteMethodA routine executes a WMI provider method. InputBuffer may be NULL only when
 * InputBufferSize is zero. Non- NULL OutputBuffer requires OutputBufferSize and a capacity below 0x80000000.
 * The output size can report a required count without copying all data; this operation is not a read-only
 * size query merely because output capacity is zero.
 *
 * \param MethodDataBlockHandle Handle to the WMI method data block.
 * \param MethodInstanceName ANSI name of the method instance.
 * \param MethodId Identifier of the method to execute.
 * \param InputBufferSize Size of InputBuffer in bytes.
 * \param InputBuffer Optional method input data.
 * \param OutputBufferSize Optional input capacity and output required size in bytes.
 * \param OutputBuffer Optional buffer that receives method output.
 * \return A Win32 error code. ERROR_SUCCESS on success.
 */
NTSYSAPI
ULONG
NTAPI
WmiExecuteMethodA(
    _In_ HANDLE MethodDataBlockHandle,
    _In_ PCSTR MethodInstanceName,
    _In_ ULONG MethodId,
    _In_ ULONG InputBufferSize,
    _In_reads_bytes_opt_(InputBufferSize) PVOID InputBuffer,
    _Inout_opt_ PULONG OutputBufferSize,
    _Out_writes_bytes_opt_(*OutputBufferSize) PVOID OutputBuffer
    );

#endif

View code on GitHub

NtDoc

No description available.