ReactOS 0.4.15-dev-8222-g9164419
helper.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS SM Helper Library
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Utility functions built around the client SM API
5 * COPYRIGHT: Copyright 2005 Emanuele Aliberti <ea@reactos.com>
6 * Copyright 2022 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
7 */
8
9#ifndef _SM_HELPER_H_
10#define _SM_HELPER_H_
11
12#include "smrosdbg.h"
13
18 _In_ PUNICODE_STRING Pgm /*,
19 _Out_opt_ PRTL_USER_PROCESS_INFORMATION ProcessInformation*/);
20
29
34 _In_ SM_INFORMATION_CLASS SmInformationClass,
37 _Inout_opt_ PULONG ReturnedDataLength);
38
39#endif // _SM_HELPER_H_
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
Definition: cdrom.h:1444
PVOID PVOID PWCHAR PVOID Environment
Definition: env.c:47
#define _Out_opt_
Definition: ms_sal.h:346
#define _Inout_
Definition: ms_sal.h:378
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
NTSTATUS NTAPI SmExecuteProgram(_In_ HANDLE SmApiPort, _In_ PUNICODE_STRING Pgm)
This function is used to make the SM start an external process under an already-loaded environment su...
Definition: smutils.c:51
NTSTATUS NTAPI SmQueryInformation(_In_ HANDLE SmApiPort, _In_ SM_INFORMATION_CLASS SmInformationClass, _Inout_ PVOID Data, _In_ ULONG DataLength, _Inout_opt_ PULONG ReturnedDataLength)
Retrieves information about subsystems registered with the SM.
Definition: smutils.c:369
NTSTATUS NTAPI SmLookupSubsystem(_In_ PWSTR Name, _Out_ PWSTR Data, _Inout_ PULONG DataLength, _Out_opt_ PULONG DataType, _In_opt_ PVOID Environment)
Reads from the registry key \Registry\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems the...
Definition: smutils.c:188
DataType
Definition: simd.h:252
SM_INFORMATION_CLASS
Definition: smrosdbg.h:22
HANDLE SmApiPort
Definition: smss.c:23
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59