Desktop Functions: Smart Device Functions:
|
FindExecutable (shell32)
C# Signature:
[DllImport("shell32.dll")] VB Signature:
Private Declare Function FindExecutable Lib "shell32" Alias "FindExecutableA" _ User-Defined Types:None. Notes:1) When using VB, one cannot place the declaration for FindExecutable within the code portion of a form. If one needs to search for an executeable from within a form, though, it is easy enough to open a module and place the declaration there. From the form code, make a call to a function in the module. Within the module function, execute FindExecutable and return any results to the form routine. steveapub@pineclifftech.com Tips & Tricks:Please add some! Sample Code:Please add some!! Alternative Managed API:Do you know one? Please contribute it! ********** Win32API.cs ********** using System; using System.Text; using System.Runtime.InteropServices; namespace QuickTool {
public class Win32API } ******************************** ******** Form1.cs ******** private void mnuDynamic_Click(object sender, System.EventArgs e) {
MenuItem theMenuItem = (MenuItem) sender; } ********************************** Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|