Exemplo n.º 1
0
        public formNativeresources(IntPtr _handle)
        {
            handle = _handle;
            InitializeComponent();
            ResourceNameCallback = new EnumResourceNameCallback(nameCallback);
            ResourceTypeCallback = new EnumResourceTypeCallback(typeCallback);

            NativeMethods.EnumResourceTypes(handle, ResourceTypeCallback, IntPtr.Zero);
           /*
            EnumResourceTypes(handle, "RT_RCDATA", "RT_STRING", "RT_VERSION", 
                "RT_ICON", "RT_GROUP_ICON", "RT_BITMAP", "RT_MESSAGETABLE", 
                "RT_MENU", "RT_MANIFEST", "RT_HTML", "RT_GROUP_CURSOR", 
                "RT_FONTDIR", "RT_FONT", "RT_DLGINCLUDE", "RT_DIALOG", 
                "RT_CURSOR", "RT_BITMAP", "RT_ANIICON", "RT_ANICURSOR", "RT_ACCELERATOR");
                */
        }
        public formNativeresources(IntPtr _handle)
        {
            handle = _handle;
            InitializeComponent();
            ResourceNameCallback = new EnumResourceNameCallback(nameCallback);
            ResourceTypeCallback = new EnumResourceTypeCallback(typeCallback);

            NativeMethods.EnumResourceTypes(handle, ResourceTypeCallback, IntPtr.Zero);

            /*
             * EnumResourceTypes(handle, "RT_RCDATA", "RT_STRING", "RT_VERSION",
             *   "RT_ICON", "RT_GROUP_ICON", "RT_BITMAP", "RT_MESSAGETABLE",
             *   "RT_MENU", "RT_MANIFEST", "RT_HTML", "RT_GROUP_CURSOR",
             *   "RT_FONTDIR", "RT_FONT", "RT_DLGINCLUDE", "RT_DIALOG",
             *   "RT_CURSOR", "RT_BITMAP", "RT_ANIICON", "RT_ANICURSOR", "RT_ACCELERATOR");
             */
        }
Exemplo n.º 3
0
 public static extern bool EnumResourceTypes(IntPtr module, EnumResourceTypeCallback cb, IntPtr z);
Exemplo n.º 4
0
 public static extern bool EnumResourceTypes(IntPtr module, EnumResourceTypeCallback cb, IntPtr z);