¡@

Home 

c# Programming Glossary: unmanagedtype.lpstr

PInvoke error when marshalling struct with a string in it

http://stackoverflow.com/questions/1223690/pinvoke-error-when-marshalling-struct-with-a-string-in-it

members and a C# struct struct ManagedStruct MarshalAs UnmanagedType.LPStr string s Other members the C library exposes extern C UnmanagedStruct..

How do you retrieve a list of logged-in/connected users in .NET?

http://stackoverflow.com/questions/132620/how-do-you-retrieve-a-list-of-logged-in-connected-users-in-net

wtsapi32.dll static extern IntPtr WTSOpenServer MarshalAs UnmanagedType.LPStr String pServerName DllImport wtsapi32.dll static extern void.. struct WTS_SESSION_INFO public Int32 SessionID MarshalAs UnmanagedType.LPStr public String pWinStationName public WTS_CONNECTSTATE_CLASS..

Alternative to FindMimeFromData method in Urlmon.dll one which has more MIME types

http://stackoverflow.com/questions/15300567/alternative-to-findmimefromdata-method-in-urlmon-dll-one-which-has-more-mime-typ

System.UInt32 FindMimeFromData System.UInt32 pBC MarshalAs UnmanagedType.LPStr System.String pwzUrl MarshalAs UnmanagedType.LPArray byte pBuffer.. byte pBuffer System.UInt32 cbSize MarshalAs UnmanagedType.LPStr System.String pwzMimeProposed System.UInt32 dwMimeFlags out..

marshalling a struct containing string

http://stackoverflow.com/questions/1985067/marshalling-a-struct-containing-string

public struct Argument public int age MarshalAs UnmanagedType.LPStr SizeConst 50 public string name or StructLayout LayoutKind.Sequential..

How to get friendly device name from DEV_BROADCAST_DEVICEINTERFACE and Device Instance ID

http://stackoverflow.com/questions/2208722/how-to-get-friendly-device-name-from-dev-broadcast-deviceinterface-and-device-in

int dbcc_reserved public Guid dbcc_classguid MarshalAs UnmanagedType.LPStr public string dbcc_name And I'm using Marshal.PtrToStructure..

Pointers in C# to Retrieve Reference From DllImport Function

http://stackoverflow.com/questions/2344929/pointers-in-c-sharp-to-retrieve-reference-from-dllimport-function

static extern void FeeCalculation string cin MarshalAs UnmanagedType.LPStr SizeConst 100 out string cout MarshalAs UnmanagedType.LPStr.. SizeConst 100 out string cout MarshalAs UnmanagedType.LPStr SizeConst 100 out string flimit or this if your strings aren't..

SendMessage to .NET Console application

http://stackoverflow.com/questions/2376237/sendmessage-to-net-console-application

Int32 SendMessage int hWnd int Msg int wParam MarshalAs UnmanagedType.LPStr string lParam Also do I need to setup some kind of message Loop..

Get timestamp from Authenticode Signed files in .NET

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

public struct CRYPT_ATTRIBUTE MarshalAs UnmanagedType.LPStr public string pszObjId public uint cValue MarshalAs UnmanagedType.LPStruct.. public string pszObjId public uint cValue MarshalAs UnmanagedType.LPStruct public CRYPT_ATTR_BLOB rgValue StructLayout LayoutKind.Sequential..

C# DllImport with C++ boolean function not returning correctly

http://stackoverflow.com/questions/4608876/c-sharp-dllimport-with-c-boolean-function-not-returning-correctly

UnmanagedType.I1 public static extern bool Exist MarshalAs UnmanagedType.LPStr string name I tested it in my very simple example and it worked..

Logoff interactive users in Windows from a service

http://stackoverflow.com/questions/5207506/logoff-interactive-users-in-windows-from-a-service

true static extern IntPtr WTSOpenServer MarshalAs UnmanagedType.LPStr String pServerName DllImport wtsapi32.dll static extern void.. struct WTS_SESSION_INFO public Int32 SessionID MarshalAs UnmanagedType.LPStr public String pWinStationName public WTS_CONNECTSTATE_CLASS.. true static extern IntPtr WTSOpenServer MarshalAs UnmanagedType.LPStr String pServerName DllImport wtsapi32.dll static extern void..

Using pHash from .NET

http://stackoverflow.com/questions/6254447/using-phash-from-net

public static extern int ph_dct_imagehash MarshalAs UnmanagedType.LPStr string file UInt64 hash But when i try to access the method.. public static extern int ph_dct_imagehash MarshalAs UnmanagedType.LPStr string file UInt64 hash public MainWindow InitializeComponent..

Passing a C# callback function through Interop/pinvoke

http://stackoverflow.com/questions/7970128/passing-a-c-sharp-callback-function-through-interop-pinvoke

Func delegate to public delegate void Func In MarshalAs UnmanagedType.LPStr string arg1 In MarshalAs UnmanagedType.LPStr string arg2 And.. In MarshalAs UnmanagedType.LPStr string arg1 In MarshalAs UnmanagedType.LPStr string arg2 And the SetFunc method to DllImport lib CharSet..