Click here to Skip to main content
16,016,140 members
Home / Discussions / C#
   

C#

 
AnswerRe: Efficient way to create a bitmap from a stream of bits in a file Pin
Eddy Vluggen5-Aug-10 11:31
professionalEddy Vluggen5-Aug-10 11:31 
AnswerRe: Efficient way to create a bitmap from a stream of bits in a file Pin
harold aptroot5-Aug-10 11:43
harold aptroot5-Aug-10 11:43 
AnswerRe: Efficient way to create a bitmap from a stream of bits in a file [modified] Pin
Luc Pattyn5-Aug-10 12:03
sitebuilderLuc Pattyn5-Aug-10 12:03 
GeneralRe: Efficient way to create a bitmap from a stream of bits in a file Pin
Adam Covitch9-Aug-10 7:02
Adam Covitch9-Aug-10 7:02 
GeneralRe: Efficient way to create a bitmap from a stream of bits in a file Pin
Luc Pattyn9-Aug-10 7:28
sitebuilderLuc Pattyn9-Aug-10 7:28 
GeneralRe: Efficient way to create a bitmap from a stream of bits in a file Pin
Adam Covitch9-Aug-10 7:34
Adam Covitch9-Aug-10 7:34 
GeneralRe: Efficient way to create a bitmap from a stream of bits in a file Pin
Luc Pattyn9-Aug-10 7:48
sitebuilderLuc Pattyn9-Aug-10 7:48 
Questionclass function Pin
v_neil875-Aug-10 10:46
v_neil875-Aug-10 10:46 
what the meaning of this code

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;


namespace DESERT_Server_v2
{
class Win32Stuff
{

#region Class Variables

public const int SM_CXSCREEN = 0;
public const int SM_CYSCREEN = 1;

public const Int32 CURSOR_SHOWING = 0x00000001;

[StructLayout(LayoutKind.Sequential)]
public struct ICONINFO
{
public bool fIcon;
public Int32 xHotspot;
public Int32 yHotspot;
public IntPtr hbmMask;
public IntPtr hbmColor;
}
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
public Int32 x;
public Int32 y;
}

[StructLayout(LayoutKind.Sequential)]
public struct CURSORINFO
{
public Int32 cbSize;
public Int32 flags;
public IntPtr hCursor;
public POINT ptScreenPos; }

#endregion

#region Class Functions

[DllImport("user32.dll", EntryPoint = "GetDesktopWindow")]
public static extern IntPtr GetDesktopWindow();

[DllImport("user32.dll", EntryPoint = "GetDC")]
public static extern IntPtr GetDC(IntPtr ptr);

[DllImport("user32.dll", EntryPoint = "GetSystemMetrics")]
public static extern int GetSystemMetrics(int abc);

[DllImport("user32.dll", EntryPoint = "GetWindowDC")]
public static extern IntPtr GetWindowDC(Int32 ptr);

[DllImport("user32.dll", EntryPoint = "ReleaseDC")]
public static extern IntPtr ReleaseDC(IntPtr hWnd, IntPtr hDc);


[DllImport("user32.dll", EntryPoint = "GetCursorInfo")]
public static extern bool GetCursorInfo(out CURSORINFO pci);

[DllImport("user32.dll", EntryPoint = "CopyIcon")]
public static extern IntPtr CopyIcon(IntPtr hIcon);

[DllImport("user32.dll", EntryPoint = "GetIconInfo")]
public static extern bool GetIconInfo(IntPtr hIcon, out ICONINFO piconinfo);


#endregion
}
}
AnswerRe: class function Pin
Pete O'Hanlon5-Aug-10 12:16
mvePete O'Hanlon5-Aug-10 12:16 
QuestionInvoking C code from C# Pin
tamash_ionut5-Aug-10 9:59
tamash_ionut5-Aug-10 9:59 
AnswerRe: Invoking C code from C# Pin
DaveyM695-Aug-10 10:06
professionalDaveyM695-Aug-10 10:06 
AnswerRe: Invoking C code from C# Pin
Luc Pattyn5-Aug-10 12:15
sitebuilderLuc Pattyn5-Aug-10 12:15 
QuestionProgram installer to require a specific Windows OS? Pin
uhcafigdc5-Aug-10 6:15
uhcafigdc5-Aug-10 6:15 
AnswerRe: Program installer to require a specific Windows OS? Pin
Not Active5-Aug-10 6:32
mentorNot Active5-Aug-10 6:32 
GeneralRe: Program installer to require a specific Windows OS? Pin
uhcafigdc5-Aug-10 7:11
uhcafigdc5-Aug-10 7:11 
GeneralRe: Program installer to require a specific Windows OS? Pin
Not Active5-Aug-10 7:29
mentorNot Active5-Aug-10 7:29 
QuestionRe: Program installer to require a specific Windows OS? Pin
uhcafigdc5-Aug-10 9:27
uhcafigdc5-Aug-10 9:27 
AnswerRe: Program installer to require a specific Windows OS? Pin
Not Active5-Aug-10 9:35
mentorNot Active5-Aug-10 9:35 
AnswerRe: Program installer to require a specific Windows OS? Pin
PIEBALDconsult5-Aug-10 17:03
mvePIEBALDconsult5-Aug-10 17:03 
GeneralRe: Program installer to require a specific Windows OS? Pin
Bernhard Hiller5-Aug-10 20:41
Bernhard Hiller5-Aug-10 20:41 
GeneralRe: Program installer to require a specific Windows OS? Pin
PIEBALDconsult6-Aug-10 3:04
mvePIEBALDconsult6-Aug-10 3:04 
QuestionFileSystem.GetFileInfo() Pin
Enobong Adahada5-Aug-10 5:59
Enobong Adahada5-Aug-10 5:59 
AnswerRe: FileSystem.GetFileInfo() Pin
Richard MacCutchan5-Aug-10 6:19
mveRichard MacCutchan5-Aug-10 6:19 
AnswerRe: FileSystem.GetFileInfo() Pin
OriginalGriff5-Aug-10 6:21
mveOriginalGriff5-Aug-10 6:21 
QuestionC#.NET 3.5 VS 2008 Excel 2007 Ribbon hide/show Pin
Wheels0125-Aug-10 4:54
Wheels0125-Aug-10 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.