Exemplo n.º 1
0
        public static SearchInfo CreateSearchInfo(string searchTerms, SearchInfoFlags flags)
        {
            var info = new SearchInfo
            {
                hVolume         = IntPtr.Zero //the docs say that hVolume should be 0
                , lpSearchTerms = searchTerms
                , nFlags        = flags
                , nSearchWindow = 0
            };

            info.iSize = Marshal.SizeOf(info);
            return(info);
        }
Exemplo n.º 2
0
        public static SearchInfo CreateSearchInfo(string searchTerms, SearchInfoFlags flags)
        {
            var info = new SearchInfo
            {
                  hVolume = IntPtr.Zero //the docs say that hVolume should be 0
                , lpSearchTerms = searchTerms
                , nFlags = flags
                , nSearchWindow = 0
            };

            info.iSize = Marshal.SizeOf(info);
            return info;
        }
Exemplo n.º 3
0
 public static Int32 XWFSearchWithoutCodePages(ref SearchInfo SInfo)
 {
     return(_XWFSearchWithPtrToPages(ref SInfo, IntPtr.Zero));
 }