SetConsoleIcon

  • Thread starter Thread starter kurt sune
  • Start date Start date
K

kurt sune

Anybody has a declaration for SetConsoleIcon?

Have only found for title:
class Win32API
{
[DllImport("Kernel32.dll")]
public static extern bool SetConsoleTitle(String
lpConsoleTitle );
}


/K
 
Got it working with this:

<DllImport("Kernel32.dll")> _
Public Shared Function SetConsoleIcon(ByVal hicon As IntPtr) As Boolean
End Function

/k
 
kurt sune said:
Got it working with this:

<DllImport("Kernel32.dll")> _
Public Shared Function SetConsoleIcon(ByVal hicon As IntPtr) As Boolean
End Function

Notice that this is an undocumented function, so there is no guarantee that
it will always work and what it won't affect the application's behavior in a
negative way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top