Skip to content

how to import methed like Shell_NotifyIconW #1427

Open
@luo-ross

Description

@luo-ross

hi,there,right now ,i didnt know how to import shell3.dll library with config in the NativeMethods.txt file,here is my config below:
User32.*
Gdi32.*
DwmAPI.*
Kernel32.*
shell32.*
WM_*
SC_*
S_*
CW_*
MSGFLTINFO_*
GetProcessDpiAwareness
GetDpiForMonitor
Shell_NotifyIconW

<ItemGroup>
	<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.183">
		<PrivateAssets>all</PrivateAssets>
		<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
	</PackageReference>
	<PackageReference Include="System.Memory" Version="4.6.0" />
	<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.1.0" />
</ItemGroup>

the problem here is method Shell_NotifyIconW or Shell_NotifyIcon can never be found in my codebase.
i want to use method Shell_NotifyIcon to handle notifyicon by myself. can any one do me a favour? thanks very much here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions