¡@

Home 

c# Programming Glossary: unmanagedtype.lptstr

Convert a username to a SID string in C#/.NET

http://stackoverflow.com/questions/1040623/convert-a-username-to-a-sid-string-in-c-net

public static extern bool LookupAccountName In MarshalAs UnmanagedType.LPTStr string systemName In MarshalAs UnmanagedType.LPTStr string accountName.. UnmanagedType.LPTStr string systemName In MarshalAs UnmanagedType.LPTStr string accountName IntPtr sid ref int cbSid StringBuilder referencedDomainName.. bool ConvertSidToStringSid IntPtr sid In Out MarshalAs UnmanagedType.LPTStr ref string pStringSid summary The method converts object name..

Win32 API function to programmatically enable/disable device

http://stackoverflow.com/questions/1438371/win32-api-function-to-programmatically-enable-disable-device

deviceInfoSet In ref DeviceInfoData did MarshalAs UnmanagedType.LPTStr StringBuilder deviceInstanceId int deviceInstanceIdSize Out.. IntPtr DeviceInfoSet ref DeviceInfoData did MarshalAs UnmanagedType.LPTStr StringBuilder DeviceInstanceId int DeviceInstanceIdSize out..

How do I display a file's Properties dialog from C#?

http://stackoverflow.com/questions/1936682/how-do-i-display-a-files-properties-dialog-from-c

int cbSize public uint fMask public IntPtr hwnd MarshalAs UnmanagedType.LPTStr public string lpVerb MarshalAs UnmanagedType.LPTStr public string.. UnmanagedType.LPTStr public string lpVerb MarshalAs UnmanagedType.LPTStr public string lpFile MarshalAs UnmanagedType.LPTStr public string.. UnmanagedType.LPTStr public string lpFile MarshalAs UnmanagedType.LPTStr public string lpParameters MarshalAs UnmanagedType.LPTStr public..

How to I display a sort arrow in the header of a list view column using C#?

http://stackoverflow.com/questions/254129/how-to-i-display-a-sort-arrow-in-the-header-of-a-list-view-column-using-c

struct HDITEM public Mask mask public int cxy MarshalAs UnmanagedType.LPTStr public string pszText public IntPtr hbm public int cchTextMax..

Using Process.Start() to start a process as a different user from within a Windows Service

http://stackoverflow.com/questions/362419/using-process-start-to-start-a-process-as-a-different-user-from-within-a-windo

#endregion struct STARTUPINFO public uint cb MarshalAs UnmanagedType.LPTStr public string Reserved MarshalAs UnmanagedType.LPTStr public.. UnmanagedType.LPTStr public string Reserved MarshalAs UnmanagedType.LPTStr public string Desktop MarshalAs UnmanagedType.LPTStr public.. UnmanagedType.LPTStr public string Desktop MarshalAs UnmanagedType.LPTStr public string Title public uint X public uint Y public uint..

Start a windows service and launch cmd

http://stackoverflow.com/questions/4147821/start-a-windows-service-and-launch-cmd

struct WTS_SESSION_INFO public int SessionID MarshalAs UnmanagedType.LPTStr public string WinStationName public ConnectionState State DllImport..

TreeView Remove CheckBox by some Nodes

http://stackoverflow.com/questions/4826556/treeview-remove-checkbox-by-some-nodes

hItem public int state public int stateMask MarshalAs UnmanagedType.LPTStr public string lpszText public int cchTextMax public int iImage..

C# convert RGB value to CMYK using an ICC profile?

http://stackoverflow.com/questions/5237104/c-sharp-convert-rgb-value-to-cmyk-using-an-icc-profile

public class ProfileFilename public uint type MarshalAs UnmanagedType.LPTStr public string profileData public uint dataSize public ProfileFilename.. uint machineName LogicalColorSpace profileID MarshalAs UnmanagedType.LPTStr In Out StringBuilder profileName ref uint size DllImport mscms.dll..

Avoiding duplicate icon resources in a .NET (C#) project

http://stackoverflow.com/questions/596837/avoiding-duplicate-icon-resources-in-a-net-c-project

CharSet.Auto extern static int ExtractIconEx MarshalAs UnmanagedType.LPTStr string lpszFile int nIconIndex IntPtr phIconLarge IntPtr phIconSmall..