Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "IntPtr" in [All]

hhctrl

.

static extern IntPtr HtmlHelp(

.

        IntPtr hWndCaller,

.

        IntPtr data);

.

     ByVal hWndCaller As IntPtr, ByVal pszFile As String, _

.

     ByVal uCommand As Integer, ByVal dwData As IntPtr) As Integer

.

HtmlHelp(IntPtr.Zero, filePath, HTMLHelpCommand.HH_HELP_CONTEXT, contextID)

.

HtmlHelp(IntPtr.Zero, filePath, HTMLHelpCommand.HH_DISPLAY_TOC, 0)

.

        IntPtr hWndCaller,

.

        internal IntPtr hinst = IntPtr.Zero;

.

    HtmlHelp(IntPtr.Zero, null, HTMLHelpCommand.HH_DISPLAY_TEXT_POPUP, param);

ntdsapi

.

    IntPtr AuthIdentity,

.

    out IntPtr hDS

.

    IntPtr AuthIdentity,

.

    out IntPtr phDS

.

    IntPtr hDS,

.

    out IntPtr ppResult);

.

    Public Shared Function DsCrackNames(ByVal hDS As IntPtr, _

.

       ByRef ppResult As IntPtr) As Object

.

      IntPtr handle = IntPtr.Zero;

.

         IntPtr pResult;

.

      out IntPtr phDS);

.

      IntPtr hDS,

.

      out IntPtr ppResult);

.

       public static extern void DsFreeNameResult(IntPtr pResult /* DS_NAME_RESULT* */);

.

       public static extern uint DsUnBind(ref IntPtr phDS);

.

      internal IntPtr rItems; // PDS_NAME_RESULT_ITEM

.

        if (rItems == IntPtr.Zero)

.

        IntPtr curptr;

.

           curptr = new IntPtr(rItems.ToInt64() + (i * stSize));

.

static public extern void DsFreeNameResult(IntPtr pResult /* DS_NAME_RESULT* */);

.

     IntPtr AuthIdentity

.

        IntPtr pGuidMap);

.

     IntPtr hDs,

.

     out IntPtr pInf

.

        string DnsDomainName, out IntPtr phDS

.

    static public extern uint DsUnBind(ref IntPtr phDS);

.

        IntPtr hDs,

.

        out IntPtr pInf);

.

        IntPtr pInf);

.

        IntPtr hDC = IntPtr.Zero;

.

        IntPtr pDCinfos; // pointer to array of DS_DOMAIN_CONTROLLER_INFO_2

.

            IntPtr pCurrentInfo = pDCinfos;

.

                pCurrentInfo = (IntPtr)(

.

     out IntPtr AuthIdentity

.

        IntPtr hDs,

.

        out IntPtr ppGuidMap);

.

    Friend Shared Function DsMapSchemaGuids(hDs As IntPtr, cGuids As UInteger, rGuids As Guid(), ByRef ppGuidMap As IntPtr) As UInteger

.

        IntPtr phDS = new IntPtr(0);

.

        IntPtr guidMap = new IntPtr(0);

.

        IntPtr hDs,

.

        out IntPtr ppGuidMap);

.

        IntPtr pGuidMap);

.

      out IntPtr phDS);

.

        IntPtr phDS);

.

    private static DS_SCHEMA_GUID_MAP[] parseGuids(IntPtr guidMap, int numGuids, bool freePointer)

.

        IntPtr guidPointer = guidMap;

.

            new IntPtr

.

static public extern uint DsUnBind(ref IntPtr phDS);

.

     IntPtr phDS

wininet

.

     public extern bool DeleteUrlCacheEntry(IntPtr lpszUrlName);

.

    ByVal lpszUrlName As IntPtr) As Boolean

.

        IntPtr lpReserved);

.

    ByVal lpReserved As IntPtr) As Boolean

.

public static extern IntPtr FindFirstUrlCacheEntry([MarshalAs(UnmanagedType.LPTStr)] string lpszUrlSearchPattern,IntPtr lpFirstCacheEntryInfo,ref int lpdwFirstCacheEntryInfoBufferSize);

.

     ByVal lpFirstCacheEntryInfo As IntPtr, _

.

     ByRef lpdwFirstCacheEntryInfoBufferSize As Int32) As IntPtr

.

static extern IntPtr FindFirstUrlCacheGroup(

.

    IntPtr lpSearchCondition,

.

    IntPtr lpReserved);

.

    ByVal lpSearchCondition As IntPtr, _

.

    ByVal lpReserved As IntPtr) As IntPtr

.

        IntPtr hFind,

.

        IntPtr lpNextCacheEntryInfo,

.

        ByVal hFind As IntPtr, _

.

        ByVal lpNextCacheEntryInfo As IntPtr, _

.

    IntPtr hFind,

.

    IntPtr lpReserved);

.

    ByVal hFind As IntPtr, _

.

    ByVal lpReserved As IntPtr) As Boolean

.

(IntPtr hFtpSession,

.

IntPtr dwContext,

.

IntPtr phFtpCommand);

.

(ByVal hFtpSession As IntPtr, _

.

ByVal dwContext As IntPtr, _

.

ByVal phFtpCommand As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

Dim ret As Boolean = FTPCommandA(ConnectionHandle, False, 0, sCommand, IntPtr.Zero, IntPtr.Zero)

.

static extern bool FtpCreateDirectory(IntPtr hConnect, string lpszDirectory);

.

  Private Shared Function FtpCreateDirectory(ByVal hConnect As IntPtr, ByVal lpszDirectory As String) As Boolean

.

static extern bool FtpDeleteFile(IntPtr hConnect, string fileName);

.

   (ByVal hConnect As IntPtr, ByVal fileName As String) _

.

   static extern IntPtr FtpFindFirstFile(IntPtr hConnect,

.

   int flags, IntPtr context);

.

   (ByVal hConnect As IntPtr, ByVal searchFile As String, _

.

   ByVal context As IntPtr) As IntPtr

.

static extern bool FtpGetCurrentDirectory(IntPtr hConnect,

.

   (ByVal hConnect As IntPtr, ByVal directory As StringBuilder, ByRef bufferLength As Integer) _

.

' and Me.hINetConn is an IntPtr opened by InternetConnect

.

static extern bool FtpGetFile(IntPtr hConnect, string remoteFile,

.

   int flagsAndAttributes, int flags, IntPtr context);

.

Declare Function FtpGetFile Lib "wininet.dll" (ByVal hConnect As IntPtr, _

.

   ByVal context As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

        internetHandle = IntPtr.Zero;

.

        ftpHandle = IntPtr.Zero;

.

    private static extern IntPtr InternetConnectW(

.

        IntPtr hInternet,

.

    public static extern IntPtr InternetOpenW(

.

        IntPtr hFtpConn,

.

        IntPtr hFtpConn,

.

        IntPtr hFtpConn,

.

    public static extern long InternetCloseHandle(IntPtr hInet);

.

    private IntPtr internetHandle;

.

    private IntPtr ftpHandle;

.

        if (internetHandle == IntPtr.Zero)

.

        if (internetHandle == IntPtr.Zero)

.

        if (ftpHandle == IntPtr.Zero)

.

        if (ftpHandle == IntPtr.Zero)

.

        if (ftpHandle != IntPtr.Zero)

.

        ftpHandle = IntPtr.Zero;

.

        if (internetHandle != IntPtr.Zero)

.

        internetHandle = IntPtr.Zero;

.

static extern bool FtpPutFile(IntPtr hConnect, string lpszLocalFile, string lpszNewRemoteFile, int dwFlags, IntPtr dwContext);

.

Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hFtpSession As IntPtr, ByVal lpszLocalFile As String, ByVal lpszRemoteFile As String, ByVal dwFlags As Integer, ByVal dwContext As Integer) As Boolean

.

public static extern bool FtpRemoveDirectory(IntPtr ulSession, string lpszDirectory);

.

public static extern bool FtpRenameFile(IntPtr ulSession, string oldFileName, string newFileName);

.

static extern bool FtpSetCurrentDirectory(IntPtr hFtpConnection, string lpszDirectory);

.

Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hConnect As IntPtr, ByVal lpszDirectory As String) As Boolean

.

static extern IntPtr HttpOpenRequest(

.

    IntPtr hConnect,

.

    IntPtr dwContext);

.

static extern bool HttpQueryInfo(IntPtr hInternet, int dwInfoLevel, ref long lpBuffer, ref long lpdwBufferLength, ref long lpdwIndex);

.

    [In] IntPtr hRequest,

.

    [In] IntPtr lpOptional,

.

static extern bool InternetCloseHandle(IntPtr hInternet);

.

    ByVal hInet As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

static extern IntPtr InternetConnect(

.

   IntPtr hInternet, string lpszServerName, short nServerPort,

.

   int dwFlags, IntPtr dwContext);

.

    ByVal hInternetSession As System.IntPtr,

.

    ByVal lContext As System.IntPtr) As System.IntPtr

.

private static extern Int32 InternetDial(IntPtr hwndParent, string lpszConnectoid, Int32 dwFlags, ref Int32 lpdwConnection, Int32 dwReserved);

.

int nResult = InternetDial(IntPtr.Zero ,"Your connection",(int)InternetDialFlags.INTERNET_DIAL_UNATTENDED ,ref nConnection , 0);

.

static extern bool InternetFindNextFile(IntPtr hFind,

.

   (ByVal hFind As IntPtr, ByRef findFileData As WIN32_FIND_DATA) _

.

static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);

.

    static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);

.

        if (!InternetGetCookieEx(url, null, cookieData, ref datasize, 0x00002000, IntPtr.Zero))

.

        if (!InternetGetCookieEx(url, null, cookieData, ref datasize, 0x00002000, IntPtr.Zero))

.

static extern bool InternetGetCookieEx(string pchURL, string pchCookieName, StringBuilder pchCookieData, ref System.UInt32 pcchCookieData, int dwFlags, IntPtr lpReserved);

.

static extern IntPtr InternetOpen(

.

    IntPtr hInternet = InternetOpen("browser", INTERNET_OPEN_TYPE_DIRECT, null, null, 0);

.

    if (IntPtr.Zero == hInternet)

.

    public IntPtr szConnection;

.

    public IntPtr options;

.

static extern bool InternetQueryOption(IntPtr hInternet, uint dwOption, char[] lpBuffer, ref int lpdwBufferLength);

.

<DllImport("wininet.dll", SetLastError:=True)> Shared Function InternetQueryOption(ByVal hInternet As IntPtr, ByVal dwOption As UInteger, ByVal  lpBuffer() As Char, ByRef lpdwBufferLength As Integer) As Boolean

.

    static extern bool InternetSetCookieEx(string lpszUrlName, string lpszCookieName, string lpszCookieData, uint dwFlags, IntPtr dwReserved );

.

InternetSetCookieEx("http://foo.bar.baz", "COOKIE_NAME", "COOKIE_VALUE" "; Expires = " DateTime.Now.AddDays(10).ToString("R"), 2147484672, IntPtr.Zero);

.

public static extern bool InternetSetOption(IntPtr hInternet, int

.

dwOption, IntPtr lpBuffer, int dwBufferLength);

.

Public Shared Function InternetSetOption(hInternet As IntPtr, dwOption As Integer, lpBuffer As IntPtr, dwBufferLength As Integer) As Boolean

.

     public IntPtr proxy;

.

     public IntPtr proxyBypass;

.

     private static extern bool InternetSetOption(IntPtr hInternet,

.

     IntPtr lpBuffer,

.

     IntPtr intptrStruct = Marshal.AllocCoTaskMem(Marshal.SizeOf(struct_IPI));

.

     // Converting structure to IntPtr

.

     Marshal.StructureToPtr(struct_IPI, intptrStruct, true);

.

     bool iReturn = InternetSetOption(IntPtr.Zero, INTERNET_OPTION_PROXY, intptrStruct, Marshal.SizeOf(struct_IPI));

.

    <FieldOffset(4)> Public lpszSourceUrlName As IntPtr

.

    <FieldOffset(8)> Public lpszLocalFileName As IntPtr

.

    <FieldOffset(64)> Public lpHeaderInfo As IntPtr

.

    <FieldOffset(72)> Public lpszFileExtension As IntPtr

.

    <FieldOffset(4)> Public lpszSourceUrlName As IntPtr

.

    <FieldOffset(8)> Public lpszLocalFileName As IntPtr

.

    <FieldOffset(64)> Public lpHeaderInfo As IntPtr

.

    <FieldOffset(72)> Public lpszFileExtension As IntPtr

ntdll

.

static extern int NtClose(IntPtr hObject);

.

  Public Shared Function NtClose(ByVal hObject As IntPtr) As Integer

.

public static extern int NtCreateFile(out SafeFileHandle handle, FileAccess access, OBJECT_ATTRIBUTES* objectAttributes, IO_STATUS_BLOCK* ioStatus, ref long allocSize, uint fileAttributes, FileShare share, uint createDisposition, uint createOptions, IntPtr eaBuffer, uint eaLength);

.

        IntPtr eaBuffer,

.

   public IntPtr information;

.

   public IntPtr RootDirectory;

.

   public IntPtr ObjectName;

.

   public IntPtr SecurityDescriptor;

.

   public IntPtr SecurityQualityOfService;

.

    public IntPtr Buffer;

.

IntPtr _RootHandle; //This will need to be initialized with the root handle, can use CreateFile from kernel32.dll

.

IntPtr buffer = Marshal.AllocHGlobal(4096);

.

IntPtr refPtr = Marshal.AllocHGlobal(8);

.

IntPtr objAttIntPtr = Marshal.AllocHGlobal(Marshal.SizeOf(objAttributes));

.

objAttributes.ObjectName = objAttIntPtr;

.

objAttributes.SecurityDescriptor = IntPtr.Zero;

.

objAttributes.SecurityQualityOfService = IntPtr.Zero;

.

                IntPtr.Zero, System.Convert.ToUInt32(0));

.

<DllImport("ntdll")> Private Shared Function NtGetContextThread(ByVal hThr As IntPtr, ByVal CNTXT As UInteger()) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

   IntPtr Buffer,

.

[DllImport("ntdll.dll", SetLastError=true)] static extern IntPtr NtQueryInformationFile(IntPtr fileHandle, ref IO_STATUS_BLOCK IoStatusBlock, IntPtr pInfoBlock, uint length, FILE_INFORMATION_CLASS fileInformation);

.

Declare Function NtQueryInformationFile Lib "ntdll.dll" (ByVal fileHandle As IntPtr, ByRef IoStatusBlock As IO_STATUS_BLOCK, ByVal pInfoBlock As IntPtr, ByVal length As UInteger, ByVal fileInformation As FILE_INFORMATION_CLASS) As IntPtr

.

    static extern IntPtr NtQueryInformationFile(SafeFileHandle fileHandle, ref IO_STATUS_BLOCK IoStatusBlock, IntPtr pInfoBlock, uint length, FILE_INFORMATION_CLASS fileInformation);

.

        IntPtr p_fbi = IntPtr.Zero;

.

                IntPtr iprc = NtQueryInformationFile(fs.SafeFileHandle, ref iosb, p_fbi, (uint)Marshal.SizeOf(fbi), FILE_INFORMATION_CLASS.FileBasicInformation);

.

                brc = iprc == IntPtr.Zero && iosb.status == 0;

.

            if(p_fbi != IntPtr.Zero) { Marshal.FreeHGlobal(p_fbi); }

.

static extern int NtQueryInformationProcess(IntPtr processHandle,

.

   int processInformationClass, IntPtr processInformation, uint processInformationLength,

.

   IntPtr returnLength);

.

static extern int NtQueryInformationProcess(IntPtr hProcess, PROCESSINFOCLASS pic,

.

   processHandle As IntPtr, processInformationClass As Integer, _

.

   processInformation As IntPtr, processInformationLength As Integer, _

.

   returnLength As IntPtr) As Integer

.

    public static IntPtr GetPEBAddress()

.

        IntPtr hProc = OpenProcess(0x001F0FFF, false, Process.GetCurrentProcess().Id);

.

        IntPtr pbi = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(PROCESS_BASIC_INFORMATION)));

.

        IntPtr outLong = Marshal.AllocHGlobal(sizeof(long));

.

        IntPtr outPtr = IntPtr.Zero;

.

        IntPtr hProc = OpenProcess((ProcessAccessFlags)0x001F0FFF, false, Process.GetCurrentProcess().Id);

.

            if (!hProc.Equals(IntPtr.Zero))

.

            hProc = IntPtr.Zero;

.

public static extern NtStatus NtQueryObject(IntPtr objectHandle, OBJECT_INFORMATION_CLASS informationClass, IntPtr informationPtr, uint informationLength, ref uint returnLength);

.

public static IntPtr NtQueryObject(IntPtr handle, OBJECT_INFORMATION_CLASS infoClass, uint infoLength = 0)

.

    IntPtr infoPtr = Marshal.AllocHGlobal((int)infoLength);

.

    return IntPtr.Zero;

.

public static extern NtStatus NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, uint Size, out uint Length);

.

public static IntPtr NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS infoClass, uint infoLength = 0)

.

            return IntPtr.Zero;

.

            return IntPtr.Zero;

.

    IntPtr

.

public static extern IntPtr NtResumeProcess(IntPtr ProcessHandle);

.

    Public Shared Function NtResumeProcess(ByVal ProcessHandle As IntPtr) As IntPtr

.

static extern UInt32 NtSetSystemInformation(NtSystemInformation.SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, UInt32 Length);

.

public static void SetSystemInformation(NtSystemInformation.SYSTEM_INFORMATION_CLASS InfoClass, IntPtr Info, UInt32 Length)

.

public static extern IntPtr NtSuspendProcess(IntPtr ProcessHandle);

.

    Public Shared Function NtSuspendProcess(ByVal ProcessHandle As IntPtr) As IntPtr

.

<DllImport("ntdll")> Private Shared Function NtUnmapViewOfSection(ByVal hProc As IntPtr, ByVal baseAddr As IntPtr) As UInteger

.

    public static extern IntPtr RtlAdjustPrivilege(int Privilege, bool bEnablePrivilege,

.

Public Declare Function RtlAdjustPrivilege Lib "ntdll.dll" (ByVal Privilege As Integer, ByVal bEnablePrivilege As Boolean, ByVal IsThreadPrivilege As Boolean, ByRef PreviousValue As Boolean) As IntPtr

.

    IntPtr

.

public static extern IntPtr ZwClose(IntPtr handle);

.

Declare Sub ZwClose Lib "ntdll.dll" (Handle As Intptr)

.

public static extern IntPtr ZwOpenSection(

.

      out IntPtr sectionHandle, uint desiredAccess, ref OBJECT_ATTRIBUTES attributes);

ncrypt

.

    IntPtr hProvider, out IntPtr hKey,

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: