ReactOS 0.4.16-dev-598-gc07fba4
|
#include "precomp.h"
#include <windef.h>
#include <winreg.h>
#include <ndk/cmfuncs.h>
#include <sm/helper.h>
#include <debug.h>
Go to the source code of this file.
Macros | |
#define | WIN32_NO_STATUS |
#define | _INC_WINDOWS |
#define | COM_NO_WINDOWS_H |
#define | NTOS_MODE_USER |
#define | NDEBUG |
Functions | |
NTSTATUS NTAPI | SmExecuteProgram (_In_ HANDLE SmApiPort, _In_ PUNICODE_STRING Program) |
This function is used to make the SM start an external process under an already-loaded environment subsystem server. | |
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 value specified by Name. | |
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. | |
Variables | |
BOOLEAN | SmpDebug = FALSE |
This function is used to make the SM start an external process under an already-loaded environment subsystem server.
[in] | SmApiPort | Port handle returned by SmConnectToSm(). |
[in] | Program | Fully qualified NT name of the executable to load. |
Definition at line 51 of file smutils.c.
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 value specified by Name.
[in] | Name | Name of the program to run, that is a value's name in the SM registry key "SubSystems". |
[out] | Data | What the registry gave back for Name. |
[in,out] | DataLength | How much Data the registry returns. |
[out] | DataType | Optional pointer to a variable that receives the type of data stored in the specified value. |
[in] | Environment | Optional environment to be used to possibly expand Data before returning it back; if set to NULL, no expansion will be performed. |
Definition at line 188 of file smutils.c.
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.
[in] | SmApiPort | Port handle returned by SmConnectToSm(). |
[in] | SmInformationClass | An SM information class ID: |
[in,out] | Data | Pointer to storage for the information to request. Either a SM_BASIC_INFORMATION or a SM_SUBSYSTEM_INFORMATION, depending on the information class. |
[in] | DataLength | Length in bytes of the Data buffer; it must be set and must match the SmInformationClass information size. |
[in,out] | ReturnedDataLength | Optional pointer to storage to receive the size of the returned data. |
Definition at line 369 of file smutils.c.
Definition at line 28 of file smutils.c.
Referenced by SmExecuteProgram().