有关导入系统dll文件的详细信息 [英] Details about the importing system dll files

查看:86
本文介绍了有关导入系统dll文件的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友......

i我正在使用.net 3.5而且我在学习中得到的代码是



Hello Friends...
i am using .net 3.5 and i got a code in study that is

Public Declare Auto Function SHGetFileInfo Lib "shell32.dll" (ByVal pszPath As String, ByVal dwFileAttributes As Integer, ByRef psfi As SHFILEINFO, ByVal cbFileInfo As Integer, ByVal uFlags As Integer) As IntPtr
    ' declare some constants that SHGetFileInfo requires

    Public Const SHGFI_ICON = &H100
    Public Const SHGFI_SMALLICON = &H1
    Public Const SHGFI_LARGEICON = &H0         ' Large icon
    Public Const SHGFI_USEFILEATTRIBUTES = &H10
    Public Const FILE_ATTRIBUTE_DIRECTORY = &H10
    Public Const FILE_ATTRIBUTE_NORMAL = &H80

    ' define the SHFILEINFO structure
    Structure SHFILEINFO
        Public hIcon As IntPtr
        Public iIcon As Integer
        Public dwAttributes As Integer

        <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=260)> Public szDisplayName As String
        <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=80)> Public szTypeName As String
    End Structure





i想知道这些关键字,函数,变量。

i想要了解这一点。任何人都可以帮助我学习这些东西

详细。



i want to know about these keyword, functions, variable.
i want to learn about this. can anyone help me out to learn these things
in detail.

推荐答案

不,不是真的 - 这不是一个问题,它是一个教程!我们不能在这样的小文本框中给出复杂主题的教程 - 这绝对是 -



从MSDN开始:使用P / Invoke调用托管类中的非托管API [ ^ ]并查看如果这有帮助。
No, not really - that isn't a question, it's a tutorial! And we can't give tutorials on complex subjects - which this most definitely is - in a little text box like this...

So start with MSDN: Using P/Invoke to Call Unmanaged APIs from Your Managed Classes[^] and see if that helps.


这篇关于有关导入系统dll文件的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆