¡@

Home 

c# Programming Glossary: cbsize

Check if an application is idle for a time period and lock it

http://stackoverflow.com/questions/1541981/check-if-an-application-is-idle-for-a-time-period-and-lock-it

internal struct LASTINPUTINFO public uint cbSize public uint dwTime public partial class Form1 Form DllImport.. LastUserAction new LASTINPUTINFO LastUserAction.cbSize uint System.Runtime.InteropServices.Marshal.SizeOf LastUserAction.. LastUserAction new LASTINPUTINFO LastUserAction.cbSize uint System.Runtime.InteropServices.Marshal.SizeOf LastUserAction..

Get timestamp from Authenticode Signed files in .NET

http://stackoverflow.com/questions/3281057/get-timestamp-from-authenticode-signed-files-in-net

struct SIGNER_SUBJECT_INFO DWORD unsigned int public uint cbSize DWORD public System.IntPtr pdwIndex DWORD unsigned int public..

Simulating Keyboard with SendInput API in DirectInput applications

http://stackoverflow.com/questions/3644881/simulating-keyboard-with-sendinput-api-in-directinput-applications

UnmanagedType.LPArray SizeConst 1 INPUT pInputs Int32 cbSize public static void Test_KeyDown INPUT InputData new INPUT 2..

How do I disable a system device programatically?

http://stackoverflow.com/questions/4097000/how-do-i-disable-a-system-device-programatically

struct SP_CLASSINSTALL_HEADER public UInt32 cbSize public UInt32 InstallFunction StructLayout LayoutKind.Sequential.. struct SP_DEVINFO_DATA public UInt32 cbSize public Guid classGuid public UInt32 devInst public IntPtr reserved.. SP_DEVINFO_DATA devdata new SP_DEVINFO_DATA devdata.cbSize UInt32 Marshal.SizeOf devdata Get first device matching device..

Show Authentication dialog in C# for windows Vista/7

http://stackoverflow.com/questions/4134882/show-authentication-dialog-in-c-sharp-for-windows-vista-7

CharSet.Auto private struct CREDUI_INFO public int cbSize public IntPtr hwndParent public string pszMessageText public.. serverName credui.pszMessageText DisplayedMessage credui.cbSize Marshal.SizeOf credui uint authPackage 0 IntPtr outCredBuffer..

WPF inactivity and activity

http://stackoverflow.com/questions/4963135/wpf-inactivity-and-activity

lastInputInfo new LASTINPUTINFO lastInputInfo.cbSize uint Marshal.SizeOf lastInputInfo lastInputInfo.dwTime 0 if..

Has anyone got any code to call SignerSignEx from C#?

http://stackoverflow.com/questions/6357759/has-anyone-got-any-code-to-call-signersignex-from-c

struct SIGNER_SUBJECT_INFO public uint cbSize public IntPtr pdwIndex public uint dwSubjectChoice public SubjectChoiceUnion.. LayoutKind.Sequential struct SIGNER_CERT public uint cbSize public uint dwCertChoice public SignerCertUnion Union1 StructLayoutAttribute.. struct SIGNER_SIGNATURE_INFO public uint cbSize public uint algidHash ALG_ID public uint dwAttrChoice public..

How to capture the screen and mouse pointer using Windows APIs?

http://stackoverflow.com/questions/6750056/how-to-capture-the-screen-and-mouse-pointer-using-windows-apis

LayoutKind.Sequential struct CURSORINFO public Int32 cbSize public Int32 flags public IntPtr hCursor public POINTAPI ptScreenPos.. if CaptureMouse CURSORINFO pci pci.cbSize System.Runtime.InteropServices.Marshal.SizeOf typeof CURSORINFO..

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

http://stackoverflow.com/questions/75785/how-do-you-do-appbar-docking-to-screen-edge-like-winamp-in-wpf

private struct APPBARDATA public int cbSize public IntPtr hWnd public int uCallbackMessage public int uEdge.. info.Edge edge APPBARDATA abd new APPBARDATA abd.cbSize Marshal.SizeOf abd abd.hWnd new WindowInteropHelper appbarWindow.. appbarWindow APPBARDATA barData new APPBARDATA barData.cbSize Marshal.SizeOf barData barData.hWnd new WindowInteropHelper..

Changing text color in C# Console Application

http://stackoverflow.com/questions/7937256/changing-text-color-in-c-sharp-console-application

struct CONSOLE_SCREEN_BUFFER_INFO_EX internal int cbSize internal COORD dwSize internal COORD dwCursorPosition internal.. csbe new CONSOLE_SCREEN_BUFFER_INFO_EX csbe.cbSize int Marshal.SizeOf csbe 96 0x60 IntPtr hConsoleOutput GetStdHandle..