Desktop Functions: Smart Device Functions:
|
Search Results for "set" in [All]hid1: FQ38VJV9LUSAH269E1FT7GVRRXMMB1ADT3H6DPPCAKCG9Y1FS5OCN4Q4ZAMT4IHSUOJIZSH43RWRWSZOV8JC8849DEJVYJZ0AH1Q ÂgñÔËE)?Ç{W0¡Ò¤ä35øi~ÐwÛk4Ñ<j22;ù?3y]¿á{?aý"Ç©ejïªïGÌQ?ö»&æõËf_Êgµ¶§ÎõÈ6ôF ÍÔÐæsetû)Ü#Z¥¡K}º_höÿ77 Ù+Yã º¿üäÇi (ï£æãòÚ3i21\¤Ë¬Ø¸É¹hÁ?NÈ¿2WbUµfæjósZ§Î³tB¼WèNiýycÜÔÕÕÛ¦eÒ1É9(ÅóPòî¾UøªU¶ÅÂMê
¦ðã|Ã.3"ù¬T<ÆÊú4Ak¥É¥âß®ÈhÙd®nǬv+Ô¥f JÿAzM;Årâ¨æ½`¾õ°¨KÜ"ì
Á¶RVùÙݶEÌú!ôëÇe
U.vQ5
[DllImport("hid.dll", SetLastError=true)]
[DllImport("hid.dll", SetLastError=true)]
[DllImport("hid.dll", SetLastError=true)]
<DllImport("hid.dll", SetLastError:=True)> _
[DllImport("hid.dll", SetLastError=true)]
<DllImport("hid.dll", SetLastError:=True, CallingConvention:=CallingConvention.StdCall)> _ When calling this API, set the first byte of reportBuffer to the feature report that you want to get. When the function call returns, the rest of the array will be filled with the feature report data.
[DllImport("hid.dll", EntryPoint="HidD_GetHidGuid", SetLastError=true)]
[DllImport("hid.dll", CharSet=CharSet.Auto, SetLastError=true)]
<DllImport("hid.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _ Note the use of CharSet.Auto in the DLL template.
[DllImport("hid.dll", SetLastError=true)] The HidD_SetOutputReport routine sends an output report to a top-level collection.
[DllImport("hid.dll", SetLastError = true)]
static private extern Boolean HidD_SetOutputReport( If HidD_SetOutputReport succeeds, it returns TRUE; otherwise, it returns FALSE. 10: HIDP_CAPS
[DllImport("hid.dll", SetLastError=true)] 11: HidP_GetCaps
[DllImport("hid.dll", SetLastError=true)] oleaut3212: LoadTypeLib
[DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true )]
[DllImport("oleaut32.dll", EntryPoint = "UnRegisterTypeLib", CharSet = CharSet.Auto, SetLastError = true)]
TLB.ReleaseTLibAttr(tlbAttrPtr) 14: VarBstrFromDisp
[DllImport("oleaut32.dll", SetLastError=false, ExactSpelling=true)] [DllImport("oleaut32.dll", SetLastError = false, ExactSpelling = true)] 16: VariantInit
[DllImport("oleaut32.dll", SetLastError=true, You can use the memset - [Function]
<DllImport("MSVCRT.DLL", EntryPoint:="memset", CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.Cdecl)>
Public Shared Sub memset(<[In](), Out()> ByVal dest As IntPtr, _
memset(ptrValue, 0, sizeVariant) icmp17: 8DAZPU0667AT225BBWGW5WLBNSFQ5385ZKN6OIZO0TJC9H7A68WMQXEA3EA0NJV7WP4O3OFWEBUW7M8L3OFQLAW1M2IY5KGJYL9I ¢öe óòÏ©íÊù.v¿uµH2 ÄXáÕp¶j\Äyþ_iòºÓ#a«tJ¡}°îÌ¿{Ù~Ä:3Î̵B·üåÑ÷pƯyccØ7ÅE VVÈÙh¬lh£\Õ%¼L¾]Éräêb\ªHü¦÷Õÿ»ó4ôØOòÏÇ8SÎ}0zü÷ÑV²:Éô¦ó7ºX9ÞàhZT Ã4fbðñSÐcçMÔ?^%hqÁJÐK_Êð7§ãGëT(bHüÜ Ðô¤¦?JûÞ,N5£ÃxêÛëpÉûdpÿÎB[\Þeáä|¢Id.1Äu¾Æ°êço¢O !±{úyÛÒûÀº%Öfª SÀÒHêI%6>ÝuÊ&ÎÌûü(¦«jh¸ Ĩmfâ¿Oí?¯ÎSeT¹E1¾¹¼À!R¬2ß>ÊW»L¥®5ûK½Û4àÛ· ÓÇlùSöÿ ¦\d¼]¬?´°ïe©ÚÜ×eA æÚÎóÄ×Ï=·IÉ$ï ûc½Ê¨:èBÍYñ'Nů<UØóABà#.kñæÅ0ÅðµÏÿHØää¬ HD8|=ÐV-orpEqÏÒ1Ìîÿ9; l;â¹úÙ×Svæô®Ótj¶° " A½ÙÇE )¡ÕwøTÖÔ!l;ÙæàæS¾ú"tce0º¬/5n¿æ»Ì1H®-`Ñ/3Çר=:¯S XÔ¿ nâ dñèPV-\ݲ\§ ÅRϯX/°Y }8 ËâÑãï½ðÖ±Ù/&<gáü{dªº(tMw/iâËÔÜ| ¦W0ÛCõ7/UèMAÃe>µßjÝÑ"_ÓãÕmoxsEtAW?üe ² 18: IcmpCloseHandle
[DllImport("icmp.dll", SetLastError=true)] 19: IcmpCreateFile
[DllImport("icmp.dll", SetLastError=true)] 20: IcmpSendEcho
[DllImport("icmp.dll", SetLastError=true)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
[DllImport("icmp.dll", SetLastError=true)]
[DllImport("icmp.dll", SetLastError=true)]
[DllImport("icmp.dll", SetLastError=true)]
// still not quite sure what the times are, e.g., the max time can be set at msi21: INSTALLLOGMODE
enum INSTALLLOGMODE // bit flags for use with MsiEnableLog and MsiSetExternalUI 22: MsiApplyPatch
[DllImport("msi.dll", SetLastError=true)]
Specifies command line property settings 23: MsiCloseHandle Sampe can be found at MsiRecordSetString. 24: MsiCreateRecord Sampe can be found at MsiRecordSetString.
[DllImport("msi.dll", CharSet = CharSet.Unicode)] Sample can be found at MsiRecordSetString.
[DllImport("msi.dll", CharSet = CharSet.Unicode)] Sampe can be found at MsiRecordSetString. 27: MsiDoAction
[DllImport("msi.dll", CharSet=CharSet.Unicode)] 28: MsiEnableLog
[DllImport("msi.dll", CharSet = CharSet.Auto, SetLastError = true)]
public enum INSTALLLOGMODE // bit flags for use with MsiEnableLog and MsiSetExternalUI 29: MsiEnumPathesEx 30: MsiEnumProducts
CharSet = CharSet.Unicode,
CharSet = CharSet.Unicode,
[DllImport("msi.dll", CharSet = CharSet.Auto, SetLastError=true)]
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("Msi.dll", SetLastError = true)] 35: MsiFormatRecord
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)] 37: MsiGetFileHash
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
// Set the dwFileHashInfoSize to 20 i.e. 5*4
[DllImport("Msi.dll", SetLastError = true)]
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("msi.dll", SetLastError=true)] 42: MsiGetProperty
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)] 44: MsiGetSourcePath
[DllImport("msi.dll", CharSet=CharSet.Unicode)] 45: MsiGetTargetPath
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Auto, SetLastError=true)] A null-terminated string that specifies the command line property settings. This should be a list of the format Property=Setting Property=Setting. For more information, see About Properties. The MsiInstallProduct function displays the user interface with the current settings and log mode. You can change user interface settings by using the MsiSetInternalUI, MsiSetExternalUI, or MsiSetExternalUIRecord functions. You can set the log mode by using the MsiEnableLog function. You can completely remove a product by setting REMOVE=ALL in szCommandLine. 47: MsiOpenDatabase
[DllImport("msi.dll", SetLastError=true)] Sampe can be found at MsiRecordSetString. 48: MsiOpenPackageEx
[DllImport("msi.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, ExactSpelling = true)] 49: MsiOpenProduct
[DllImport("msi.dll", SetLastError=true)]
[DllImport("msi.dll", CharSet=CharSet.Auto)]
[DllImport("msi.dll", SetLastError=true)]
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
static extern int MsiRecordSetStream(IntPtr hRecord, int iField, string szFilePath);
[DllImport("msi.dll", CharSet=CharSet.Unicode)]
static extern int MsiRecordSetString(IntPtr hRecord, int iField, string szValue); The sample application below demonstrates how to use MsiRecordSetString, MsiOpenDatabase, MsiCreateRecord, MsiCloseHandle, MsiDatabaseOpenView, MsiViewExecute, MsiDatabaseCommit, and MsiViewClose in C# to modify a property value in an MSI database. To run it, simply create a new Windows Console application and replace the code that Visual Studio gives you with the code below. You may have to modify the namespace name. The sample as-is requires a valid MSI database named SETUP.msi, with a property named PROPERTY1 in the Property table, to be located in C:\. You can of course change the path to your MSI database in the calls to ChangeMSIProperty() in Main() and use any existing property you wish.
[DllImport("msi.dll", SetLastError = true)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
[DllImport("msi.dll", CharSet = CharSet.Unicode)]
static extern int MsiRecordSetString(IntPtr hRecord, int iField, string szValue);
ChangeMSIProperty(@"C:\SETUP.msi", "PROPERTY1", "1"); // Set property "PROPERTY1" to a value of 1.
ChangeMSIProperty(@"C:\SETUP.msi", "PROPERTY1", "0"); // Now set property "PROPERTY1" to a value of 1.
// The method to call to set/change a property value.
string sql = @"UPDATE Property SET Value = ? WHERE Property = '" + property + "'";
// Set field 1 of your record to the value to set in the database.
returnValue = (WINDOWS_MESSAGE_CODES)MsiRecordSetString(msiRecord, (int)1, value);
throw new MsiInstallationSupportException(string.Format(CultureInfo.InvariantCulture, "MsiRecordSetString returned error code {0}.", returnValue.ToString()));
// Execute the view, passing it the record set. If the property does not exist, it will NOT be created and there will be NO error thrown.
[DllImport("msi.dll", SetLastError=true, CharSet = CharSet.Auto)] 58: MsiSetExternalUI
public static extern InstallUIHandler MsiSetExternalUI(InstallUIHandler handler, int messageFilter, IntPtr context);
Declare Function MsiSetExternalUI Lib "msi.dll" (TODO) As TODO
MsiSetExternalUI(new InstallUIHandler(MyInstallUIHandler), 32735, (IntPtr)0); 60: MsiSetInternalUI
[DllImport("msi.dll", SetLastError=true)]
static extern int MsiSetInternalUI(int dwUILevel, ref IntPtr phWnd);
[DllImport("msi.dll", SetLastError = true)]
static extern int MsiSetInternalUI(INSTALLUILEVEL dwUILevel, ref IntPtr phWnd);
<DllImport("msi.dll", SetLastError:=True)> _
Private Function MsiSetInternalUI(dwUILevel As INSTALLUILEVEL, ByRef phWnd As IntPtr) As Integer
MsiUtils.MsiSetInternalUI(MsiUtils.INSTALLUILEVEL.INSTALLUILEVEL_NONE , ref hwnd); Cut off search results after 60. Please refine your search. |