77 lines
1.4 KiB
C
77 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2022 Winsider Seminars & Solutions, Inc. All rights reserved.
|
|
*
|
|
* This file is part of System Informer.
|
|
*
|
|
* Authors:
|
|
*
|
|
* jxy-s 2021
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifndef PH_NOTIFTOAST_H
|
|
#define PH_NOTIFTOAST_H
|
|
|
|
EXTERN_C_START
|
|
|
|
_Must_inspect_result_
|
|
HRESULT
|
|
NTAPI
|
|
PhInitializeToastRuntime();
|
|
|
|
VOID
|
|
NTAPI
|
|
PhUninitializeToastRuntime();
|
|
|
|
_Must_inspect_result_
|
|
HRESULT
|
|
NTAPI
|
|
PhShowToast(
|
|
_In_ PCWSTR ApplicationId,
|
|
_In_ PCWSTR ToastXml,
|
|
_In_opt_ ULONG TimeoutMilliseconds,
|
|
_In_opt_ PPH_TOAST_CALLBACK ToastCallback,
|
|
_In_opt_ PVOID Context
|
|
);
|
|
|
|
_Must_inspect_result_
|
|
HRESULT
|
|
NTAPI
|
|
PhShowToastEx(
|
|
_In_ PCWSTR ApplicationId,
|
|
_In_ PCWSTR ToastXml,
|
|
_In_opt_ ULONG TimeoutMilliseconds,
|
|
_In_opt_ PH_TOAST_PRIORITY Priority,
|
|
_In_opt_ PPH_TOAST_CALLBACK ToastCallback,
|
|
_In_opt_ PVOID Context
|
|
);
|
|
|
|
_Must_inspect_result_
|
|
HRESULT
|
|
NTAPI
|
|
PhShowToastStringRef(
|
|
_In_ PPH_STRINGREF ApplicationId,
|
|
_In_ PPH_STRINGREF ToastXml,
|
|
_In_opt_ ULONG TimeoutMilliseconds,
|
|
_In_opt_ PPH_TOAST_CALLBACK ToastCallback,
|
|
_In_opt_ PVOID Context
|
|
);
|
|
|
|
_Must_inspect_result_
|
|
HRESULT
|
|
NTAPI
|
|
PhShowToastStringRefEx(
|
|
_In_ PPH_STRINGREF ApplicationId,
|
|
_In_ PPH_STRINGREF ToastXml,
|
|
_In_opt_ ULONG TimeoutMilliseconds,
|
|
_In_opt_ PH_TOAST_PRIORITY Priority,
|
|
_In_opt_ PPH_TOAST_CALLBACK ToastCallback,
|
|
_In_opt_ PVOID Context
|
|
);
|
|
|
|
EXTERN_C_END
|
|
|
|
#endif
|