Example #1
0
        /// <summary>
        ///   Creates a default Windows VS_FIXEDFILEINFO structure.
        /// </summary>
        /// <returns> A default Windows VS_FIXEDFILEINFO. </returns>
        public static VsFixedfileinfo GetWindowsDefault()
        {
            var fixedFileInfo = new VsFixedfileinfo();

            fixedFileInfo.dwSignature     = Winver.VS_FFI_SIGNATURE;
            fixedFileInfo.dwStrucVersion  = Winver.VS_FFI_STRUCVERSION;
            fixedFileInfo.dwFileFlagsMask = Winver.VS_FFI_FILEFLAGSMASK;
            fixedFileInfo.dwFileOS        = (uint)Winver.FileOs.VOS__WINDOWS32;
            fixedFileInfo.dwFileSubtype   = (uint)Winver.FileSubType.VFT2_UNKNOWN;
            fixedFileInfo.dwFileType      = (uint)Winver.FileType.VFT_DLL;
            return(fixedFileInfo);
        }
Example #2
0
 /// <summary>
 ///   Read the fixed file  information structure.
 /// </summary>
 /// <param name = "lpRes">Address in memory.</param>
 internal void Read(IntPtr lpRes)
 {
     _fixedfileinfo = (VsFixedfileinfo) Marshal.PtrToStructure(lpRes, typeof (VsFixedfileinfo));
 }
Example #3
0
 /// <summary>
 ///   Creates a default Windows VS_FIXEDFILEINFO structure.
 /// </summary>
 /// <returns>A default Windows VS_FIXEDFILEINFO.</returns>
 public static VsFixedfileinfo GetWindowsDefault()
 {
     var fixedFileInfo = new VsFixedfileinfo();
     fixedFileInfo.dwSignature = Winver.VS_FFI_SIGNATURE;
     fixedFileInfo.dwStrucVersion = Winver.VS_FFI_STRUCVERSION;
     fixedFileInfo.dwFileFlagsMask = Winver.VS_FFI_FILEFLAGSMASK;
     fixedFileInfo.dwFileOS = (uint) Winver.FileOs.VOS__WINDOWS32;
     fixedFileInfo.dwFileSubtype = (uint) Winver.FileSubType.VFT2_UNKNOWN;
     fixedFileInfo.dwFileType = (uint) Winver.FileType.VFT_DLL;
     return fixedFileInfo;
 }