|
New Windows8 Logo Launched....
|
|
2/19/2012 11:44:00 PM
|

San Francisco: Microsoft announced that it was redesigning the logo of Windows software, making a fundamental change to the iconic four-colour Windows logo users have been used to for 20 years. Meshing with the Metro design of Microsoft's upcoming Windows 8, the new logo is a slightly-angled blue block with a thin white cross in the middle, making it look like a window instead of the four-colour wavy flag in the past, reported Xinhua. "The Windows logo is a strong and widely recognised mark but when we stepped back and analysed it, we realised an evolution of our logo would better reflect our Metro style design principles and we also felt there was an opportunity to reconnect with some of the powerful characteristics of previous incarnations," said Microsoft in a blog post.
|
|
|
|
|
Steve Jobs - The pioneer marketeer...
|
|
11/8/2011 3:54:06 AM
|
This week we lost one of the true marketing geniuses of our lifetime. While Steve Jobs was the chief executive officer there was no doubt he was also the chief marketing officer as well. There are three things that he and Apple did better than anyone and we should try to put them into practice whenever possible. - Make things easy for customers: Apple has been legendary for its focus on “ease of use,” and the company has pioneered many great products with this mission in mind. But making products and services easy for customers to have a great experience should not be limited to technology firms. Banks, hospitals, insurance companies, auto makers and airlines could learn this lesson from Steve.
- Develop “whole products”: For years Apple was criticized for the “closed” system approach it used for its Macintosh computers. By controlling the hardware, operating system and many of the peripherals, Apple made the Mac easy to use, but also much more expensive. This ultimately limited the market share for the Mac. However, this whole product philosophy was critical to the success of the iPod. Steve not only envisioned a highly portable music device, he pioneered a new and fair pricing model for music that was made available through the iStore. The music could easily be managed through iTunes, and this combination of iPod, iTunes and iStore transformed how we buy and listen to music. It also reignited the Apple brand and paved the way for the highly successful iPhone and iPad.
- Create a beloved brand: Few brands have as many passionate fans as Apple. This brand fanaticism has been a result of not only lessons #1 and #2 but also the consistency with which the company communicates. Every touch-point in a consumer’s experience has been executed with the same visual identity and simplicity. From product packaging and advertising to the website and retail stores, the Apple brand has been clearly and consistently delivered. Steve would have it no other way.
While we mourn the loss of a real pioneer, let’s be grateful that Steve Jobs had the vision and courage to show us all how marketing could be done. For me that will be his enduring legacy. -- Courtesy - Forbes Magazine
|
|
|
|
|
AppLocker Guide : How to Lock Applications using AppLocker in Win7
|
|
10/22/2011 3:32:01 AM
|
AppLocker: Step by Step

AppLocker provides the flexibility to allow users to run the applications, installation programs, and scripts they need to be productive. Learn how you can realize the security, operational, and compliance benefits of application standardization by using AppLocker.
Please click on the link to download PDF on How To Lock Applications using AppLocker in Win7.
|
|
|
|
|
Windows8 Review
|
|
9/16/2011 4:07:42 AM
|
Windows8 Developer Preview was launched on 13th Sep 2011
NathCorp is one of the first ones to offer you a sneak preview of the best features and looks yet!!
Download the document below!!
|
|
|
|
|
How to complete multicasting which is installation of multiple computers simultaneously using WDS
|
|
9/10/2011 5:11:49 AM
|
How to complete
multicasting which is installation of multiple computers simultaneously using
WDS
In this document we will learn how to INSTALL ON MULTIPLE COMPUTERS USING WDS or Windows Deployment System.
Please click here to download the complete steps document.
|
|
|
|
|
Top 10 things every Web Developer should know about!!
|
|
9/10/2011 12:17:33 AM
|
Top 10 things every web developer
should know about!
Being a decent developer means you need to tighten your
belt and always have a curious attitude of learning, because there are so many
important skills and these are regularly upgrading.

1. Planning
for the website
First, we have to identify clear marketing goals for our site,
such as generating leads, building a database of potential customers' names and
e-mail addresses, or putting a product catalog online to save the time and
expense of printing and mailing. Quantify your objectives-such as increasing
sales by 15 percent-so. Then, figure out what our potential customers need to
know before buying our products and services. This might include:
·
An overview of our company, its products and services,
and their applications
·
Complete product or service descriptions, including
features, key benefits, pricing, product specifications, and other information,
for each product or service
·
Testimonials, case studies, or success stories so
customers can see how similar individuals or organizations have worked with us
·
An FAQ section that anticipates and answers customers'
common issues
2. Choosing
the type of website
Basically
there are two categories of websites, they are:
Static Website
A
static website is one that has content not expected to change frequently. It is
maintained by using some type of editor software such as:
·
Text editors such
as Notepad where the HTML is manipulated directly within the editor program.
·
WYSIWYG (What You
See IS What You Get) editors such as Microsoft FrontPage and Macromedia
Dreamweaver, where, the site is edited using GUI interface and the underlying
HTML is generated automatically by the editor software.
Dynamic Website
A
dynamic website is one that may have frequently changing information.
Here,
when the web server receives a request for a given page, the page is
automatically generated by the software in direct response to the page request;
this opening up many possibilities including for example: providing information
in some way personalized to the requirements of the individual user or look and
feel differently to different user.
There
are large ranges of software systems, such as:
- ·
Active Server Pages (ASP)
- ·
Java Server Pages
(JSP)
3. Choose
the Right Site-Building Tools 
With a solid
plan in hand, we're ready to start constructing our site. Many templates turn
to professional design studios to create their Web sites. But if our budget is
limited, many Web site building tools like online website builders make it fast
and easy for us to create a polished, professional-looking site-with no
in-depth HTML knowledge necessary. The entire process can put us on the
Internet in less than 24 hours at convenient and affordable monthly prices.
But we should
have to keep this in mind if we are designing through own environment like jsp,
asp.net or css.
·
our logo/site
title should be positioned in the top left of the page;
- our main navigational links in the page
footer with links to additional, but less prominent pages;
- have the navigation positioning consistent from
page to page;
- Try to open the web pages in sane windows
except embedded file like PDF,word….
- Font size should be 12 and have the
familiar look
- Center the layout it should be in center
while it will be in different size of monitor or any browser
- Use whitespace to logically group related
items on the page;
- Link to related content within the
context of our page content;
- Make sure our links change color/style
when visited;
- Use pull quotes to highlight important
content in a lengthy article;
- Use dark gray text instead of black text
on a white background;
- Break long pages into multiple pages or
call the frame ;
- Do not use all uppercase words, word
shape helps word recognition
- Keep a consistent layout, colors and
typography throughout the whole site;
- Use buttons to submit forms (Some images
which look like buttons are ok);
- Don’t redesign standard UI elements, like
scrollbars (this means you, flash people!);
- Use breadcrumb navigation for
hierarchical content;
- Search results page should reiterate the
phrase you searched for;
- call our homepage “home” – not “welcome,”
“front page,” “our company name” or anything else;
- Use short and easy to read URL’s;
4. Choose the Domain Name

Our domain name is a key part of your brand and most importantly it is the
first impression of our website that a visitor gets. We have to choose it
carefully
To begin, search
for this domain name by typing in the name along with the appropriate domain,
such as .com, .biz, .info, .ws (for businesses), .org (for non-profit
organizations), .edu (for educational institutions), .net (for networks), .mil
(for military) and .gov (for government agencies).
Its depend on the
type of our business for whom we are designing the website.
Make sure the
name which we choose will reflect our business…
5. Regular Expressions:

A
regular expression (regex or regexp for short) is a special text string for
describing a search pattern. So that we can think of regular expressions as
wildcards on steroids. we are probably familiar with wildcard notations such as
*.txt to find all text files in a file manager. The regex equivalent is.*\.txt$.
But we can do
much more with regular expressions. In a text editor like EditPad Pro or a specialized
text processing tool like PowerGREP, Any email address, to be exact. A
very similar regular expression (replace the first \b with ^ and
the last one with $) can be used by a programmer to
check if the user entered a properly formatted email address. In just one line
of code, whether that code is written in Perl, PHP, Java, a .NET language or a
multitude of other languages
6. Basic
SEO

Familiarity
of basic SEO is must for any good web developer. Any search engine will always try
to return whatever it has available that it thinks is the most relevant data to
a specific query based upon ranking criteria set by the specific search service
itself. That is the search service's core mission.
7. Compatibility

In order to
reach as many viewers as possible, our websites need to work in all the major
browsers (IE6, IE7, IE8, FF2, FF3, Safari 4, Opera 9). Everyone hates
cross-browser debugging,
To become a familiar name among
viewers, we need to create a website which is compatible with majority of web
surfers. In today's situation, market share of browsers, as depending on our
target audience, the compatibility of our website with your audience is
restricted. There's only one way to be certain about a particular platform that
is to test it on that platform
The best
cross-browser debugging is preventative, starting with valid HTML and a good
reset style sheet. For my reset CSS, I just use * {margin: 0; padding: 0} but
we can also use Something robust
8. Photos, Graphics,
Animations, Sound, and Video
A strong knowledge of image processing not only allows
you to make quick changes to comps without bouncing them back to the designer,
it also helps you to understand what is possible when asking for design changes.
·
Clipart tends to look a bit
tacky on websites. We recommend photos.
·
Stock photos obtained from
google.com and other stock photo sites.
For an extra charge, we
can equip our webpages with:
·
Sound, either MIDI musical
background or mp3 files for music or voice.
·
Animated GIF images. We make animations for an extra charge.
·
Shockwave Animations
·
Flash Animations
·
Video clips
9. Copyright / cyber law basics

It’s best
for all developers to have at least a basic knowledge of copyright and cyber
law wherever they do business.
Since
websites are essentially publications, copyright issues tend to be the most
common legal issue for sites.
In comparison to
traditional print-based media, the accessibility and relative anonymity of
cyber space has torn down traditional barriers between an individual and his or
her ability to publish. Any person with an internet connection has the
potential to reach an audience of millions with little-to-no distribution
costs. Yet this new form of highly accessible authorship in cyber space raises
questions and perhaps magnifies legal complexities relating to the freedom and
regulation of speech in cyberspace
Beyond
copyright laws it’s good to understand privacy regulations as well as read
carefully through any agreements we have with registrars / hosting companies
(and clients!).
10. Payment management
Accepting credit cards and other methods of
payment online for our online business is crucial to us for businesses success.
If a customer has to send us a money order by mail, our sales will suffer
because most people won't want to do that. It's too slow to do it that way.
They have to wait until the check gets by us in addition to waiting on the
package to come from us. The hardest task with setting up an ecommerce website
is to find a trustworthy and reliable service that will allow us to accept
credit card payments online and without too many problems.so we have to kept
this in mind to contact third party like PayPal, amazon ….etc
11. Hosting the website

Our Web site
is a series of files that reside on a special computer, called a Web server,
connected to the Internet. For customers to visit our site, they must actually
connect to that Web server via the Internet and view the files. Web servers and
the Internet connections that link them to visitors must be fast and powerful
enough to quickly respond to all the visitors' requests to view our site.
Types
of hosting
- ·
Free web hosting
service: is free, (sometimes) Advertisement-supported web hosting, and is
extremely limited when compared to paid hosting.
- ·
Shared web
hosting service: is paid, one’s Web site is placed on the same server as
several hundred other sites. These are somewhat restricted to what can be done.
- ·
Dedicated web
hosting service: is paid, the user gets his or her own Web server and gains
full control over it (root access for Linux/administrator access for Windows);however, the user does not own the server.
- · Collocation web
hosting service: is paid, similar to the dedicated web hosting service, but the
user owns the server; the hosting company provides physical space that the server takes up and takes care of the
server. This is the most powerful and expensive type of the web
hosting service
Conclusion
Websites are never finished. It
needs constant up gradation and fine tuning to get the best search engine
listing. While designing a website, our prime concern should be to
make it feature rich and informative for the viewer. It should have the
pertinent information which is desired by our visitors and search engines. To
make an active site, we should plan accordingly and make every page attractive
and informative. If our site features empty pages and is disorganized then it
is just a failure. So, we should make our site look professional and effective.
|
|
|
|
|
WINDOWS7 Deployment with Windows Deployment Services
|
|
8/27/2011 12:40:47 AM
|
WINDOWS7 Deployment
with Windows Deployment Services

Hi,
Everyone here we going to learn Window 7 deployment with WDS and preloaded with some required Applications. After application installation, we are going to capture and deploy reference IMAGE. I am assuming that you already have Domain controller infrastructure with DNS/DHCP. My LAB Setup Information 1. Windows 2008/R2SP1 2. Windows 7 with Office 2010 and some other 5-7 Applications.
Ok let’s start our setup. Here is my setup: I have installed HYPER-V on my LAB machine. Then I created three VM’s. 1. VM1 is Windows 2008R2 with Sp1 2. VM2 is Windows 7 with some apps? a. Office 2010 b. Team Viewer c. FireFox d. Microsoft security Essentials e. VLC Media Player and WinRar. 3. VM3 is blank for future deployment -> support network boot installation. Some Basic Points: • My Server Name PRADC. • Active directory domain services : I am using my domain name (FRESHNET.COM) • My DC server address is 192.168.10.10 gateway is 192.168.10.1 • Add DHCP Roles and define DHCP range : I am using 192.168.10.0/24 • After successful creation of domain infrastructure we have to add role which is Windows Deployment Services. • We need to install WAIK 2.0 Version On Windows Server for Image Engineering. • I am working on domain infrastructure and all setups are part of domain. The complete document is shared here White Paper.
|
|
|
|
|
New Applets and Features in Win7 - Part1
|
|
8/16/2011 5:38:55 AM
|
Whether you've just bought a new PC running Windows 7 or you've been using it for a while, there are bound to be things you didn't know you could do. Whether it's tweaks to get the desktop the way you want it, tips for troubleshooting or ways to squeeze more performance from Windows 7, we've got it covered. We've updated our popular Windows 7 tips article with a load of new ones, including how to recover locked-up apps, how to extend your jumplists, leave a Windows 7 Homegroup, and more. Read on for 85 tips to help you get the best from Windows 7. 1. Problem Steps Recorder As the local PC guru you're probably very used to friends and family asking for help with their computer problems, yet having no idea how to clearly describe what's going on. It's frustrating, but Microsoft feels your pain, and Windows 7 will include an excellent new solution in the Problem Steps Recorder. When any app starts misbehaving under Windows 7 then all your friends need do is click Start, type PSR and press Enter, then click Start Record. If they then work through whatever they're doing then the Problem Steps Recorder will record every click and keypress, take screen grabs, and package everything up into a single zipped MHTML file when they're finished, ready for emailing to you. It's quick, easy and effective, and will save you hours of troubleshooting time. 2. Burn images Windows 7 finally introduces a feature that other operating systems have had for years - the ability to burn ISO images to CDs or DVDs. And it couldn't be much easier to use. Just double-click the ISO image, choose the drive with the blank disc, click Burn and watch as your disc is created. 3. Create and mount VHD files Microsoft's Virtual PC creates its virtual machine hard drives in VHD files, and Windows 7 can now mount these directly so you can access them in the host system. Click Start, type diskmgmt.msc and press Enter, then click Action > Attach VHD and choose the file you'd like to mount. It will then appear as a virtual drive in Explorer and can be accessed, copied or written just like any other drive. Click Action > Create VHD and you can now create a new virtual drive of your own (right-click it, select Initialise Disk, and after it's set up right-click the unallocated space and select New Simple Volume to set this up). Again, you'll be left with a virtual drive that behaves just like any other, where you can drag and drop files, install programs, test partitioning software or do whatever you like. But it's actually just this VHD file on your real hard drive which you can easily back up or share with others. Right-click the disk (that's the left-hand label that says "Disk 2" or whatever) and select Detach VHD to remove it. The command line DISKPART utility has also been upgraded with tools to detach a VHD file, and an EXPAND command to increase a virtual disk's maximum size. Don't play around with this unless you know what you're doing, though - it's all too easy to trash your system. 4. Troubleshoot problems If some part of Windows 7 is behaving strangely, and you don't know why, then click Control Panel > Find and fix problems (or 'Troubleshooting') to access the new troubleshooting packs. These are simple wizards that will resolve common problems, check your settings, clean up your system and more. 5. Startup repair If you've downloaded Windows 7 (and even if you haven't) it's a good idea to create a system repair disc straight away in case you run into problems booting the OS later on. Click Start > Maintenance > Create a System Repair Disc, and let Windows 7 build a bootable emergency disc. If the worst does happen then it could be the only way to get your PC running again.
For the next 5 steps... check back this place....
|
|
|
|
|
Tweaks to get the most out of your SSD in Windows 7
|
|
8/10/2011 4:57:00 AM
|
Solid-state drives are wicked fast. SSDs start and shut down fast, and they perform read operations (especially random reads) at speeds that blow the doors off conventional hard drives. In the first installment of this series, I gathered the numbers to show just how much faster you can expect an SSD to perform in the real world. But you might need to jump through some setup hoops to get top performance out of an SSD-equipped PC running Windows 7. That’s because Windows has evolved over many years with features that specifically target the behavior of conventional hard disks. Features like Superfetch and Prefetch and ReadyBoot are designed to monitor files you access at startup and when you launch programs and then arrange them on the disk for optimal access. Because SSDs don’t have motors and spindles and platters and magnetic heads, they don’t benefit from those features and need to be handled differently. For the rest of the article please go to http://www.zdnet.com/blog/bott/windows-7-and-ssds-setup-secrets-and-tune-up-tweaks/2910
|
|
|
|
|
What is Windows 7 God Mode
|
|
1/18/2010 12:59:38 AM
|

As cool as the name sound - Windows 7 God Mode provides a total control of the operating system's configuration aspect. You can think of it as an extended version of 'Control Panel'
Add a folder and name it as GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
Double click on the created folder and get complete control over your Windows 7 System.
|
|
|
|
|
What does it mean to be Compatible with Windows 7 - Migration SWAT Team expert Chris Jackson gives his views
|
|
1/13/2010 4:42:10 AM
|

When you say that you your application is Windows 7 Compatible - What does that exactly mean? Does it mean that your application is built for Windows 7 or does it mean that it would work on Windows 7 with the help of the shim database.
Migration Expert Chris Jackson also known as ' The App Compat Guy' gives his views.
Read here for Chris's explanation.
|
|
|
|
|
VS 2010 - Collaborative Debugging
|
|
12/1/2009 6:31:38 PM
|
Came across an intresting article on collaborative debugging on Visual Studio 2010.
Read the full article here
|
|
|
|
|
Little-known cool command line utility: clip
|
|
11/19/2009 2:40:48 AM
|
Little-known command line utility: clip
Windows 7 includes a tiny command line utility called clip. All it does is paste its stdin onto the clipboard. dir | clip
echo hey | clip
|
|
|
|
|
New Windows 7 Themes
|
|
11/6/2009 5:40:21 AM
|
Download new themes from here
|
|
|
|
|
Find out what people are saying about Windows 7
|
|
11/5/2009 10:24:53 PM
|

If you want to know what people are saying about Windows 7 refer this link
|
|
|
|
|
Microsoft Intelligence Report - Finds Vista more robust to virus and malware attacks
|
|
11/4/2009 11:09:04 PM
|

Microsoft isssued a security intelligence report for the period of January through June 2009.
Based on the key findings and data - Windows Vista had a very less infection rate than XP by 61.9 percent.
For the full story download the Report from here
|
|
|
|
|
Software That Fixes Itself
|
|
10/30/2009 5:02:15 AM
|
Came across an intresting article on Software that could create a patch for itself detecting a flaw in its code. Read the full article here
Source:Technology Review
|
|
|
|
|
Windows 7 Deployment Guide
|
|
10/28/2009 5:09:21 AM
|

If you want to start with Windows 7 deployment in your organization consider going through the Magazine issued by Microsoft on how to effectively deploy Windows 7.
Cover's all topics including running compatiblity tests. Dowload the magazine here
|
|
|
|
|
Disk2Vhd - A tool that creates virtual disk of you live drive!
|
|
10/26/2009 2:46:02 AM
|

I work with a lot of VM's for my testing and development purposes - And sometimes would like to create a VM of my own host machine when moving to a new environment.
I had recently moved from Vista to Win 7 , and needed a backup of my box and environment.
Used a nice tool Disk2Vhd - That takes an image of your live system which can be used on Virtual PC and on Hyper-V.
Dowload the tool here!
|
|
|
|
|
|
|
Getting Token Information from a .NET Application [Code Included]
|
|
10/23/2009 2:54:01 AM
|
I have seen a lot of requests on getting token information from a .NET application so I went on to create a API that can be used .In order to understand this custom API you would need to read on whats a 'Token'
"According to Microsoft an access token is an object that describes the security context of a process or a thread"
Refer MSDN for a more detailed description : http://msdn.microsoft.com/en-us/library/aa374909(VS.85).aspx
This API uses Pinvoke , hence make sure you import the required dll's and structures. A handle to the process that needs to be queried is passed.
resultDTO is a DTO object.
Source Code:
/*File Details Company Name : NathCorp File Name : GetTokenInfo.cs Created on : 12.31.2007 Author : Ganesh */
#region Headers
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Security.Principal;
#endregion
namespace nath.API { /// <summary> /// Class used to get Process Token. /// </summary> class TokenAPI {
#region Constants //Constant values used for function GetTokenInformation. const UInt32 TOKEN_QUERY = 0x0008; public const uint ERROR_SUCCESS = 0; public const uint ERROR_INSUFFICIENT_BUFFER = 122; public const uint TokenIntegrityLevel = 25;
const long SECURITY_MANDATORY_UNTRUSTED_RID = (0x00000000L); const long SECURITY_MANDATORY_LOW_RID = (0x00001000L); const long SECURITY_MANDATORY_MEDIUM_RID = (0x00002000L); const long SECURITY_MANDATORY_HIGH_RID = (0x00003000L); const long SECURITY_MANDATORY_SYSTEM_RID = (0x00004000L); const long SECURITY_MANDATORY_PROTECTED_PROCESS_RID = (0x00005000L); #endregion
#region Structures enum TOKEN_INFORMATION_CLASS { TokenUser = 1, TokenGroups, TokenPrivileges, TokenOwner, TokenPrimaryGroup, TokenDefaultDacl, TokenSource, TokenType, TokenImpersonationLevel, TokenStatistics, TokenRestrictedSids, TokenSessionId, TokenGroupsAndPrivileges, TokenSessionReference, TokenSandBoxInert, TokenAuditPolicy, TokenOrigin, TokenElevationType, TokenLinkedToken, TokenElevation, TokenHasRestrictions, TokenAccessInformation, TokenVirtualizationAllowed, TokenVirtualizationEnabled, TokenIntegrityLevel, TokenUIAccess, TokenMandatoryPolicy, TokenLogonSid, MaxTokenInfoClass }
enum TOKEN_VIRTUALIZATION_ENABLED { buff }
[StructLayout(LayoutKind.Sequential)] public struct TOKEN_MANDATORY_LABEL {
public SID_AND_ATTRIBUTES Label;
}
[StructLayout(LayoutKind.Sequential)] public struct SID_AND_ATTRIBUTES { public IntPtr Sid; public int Attributes; } #endregion
#region Dll Import Functions
[DllImport("advapi32.dll", SetLastError = true)] static extern bool GetTokenInformation(IntPtr TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, IntPtr TokenInformation, uint TokenInformationLength, out uint ReturnLength);
[DllImport("advapi32.dll", SetLastError = true)] static extern bool OpenProcessToken(IntPtr ProcessHandle, UInt32 DesiredAccess, out IntPtr TokenHandle);
[DllImport("kernel32.dll")] public static extern IntPtr LocalAlloc(uint uFlags, UIntPtr uBytes);
[DllImport("advapi32.dll", SetLastError = true)] public static extern IntPtr GetSidSubAuthority(IntPtr pSid, UInt32 nSubAuthority);
[DllImport("advapi32.dll", SetLastError = true)] public static extern IntPtr GetSidSubAuthorityCount(IntPtr pSid); #endregion
//Constructor public TokenAPI() { } /// <summary> /// Function that Queries a process to check if its Virtualized. /// </summary> /// <param name="handle">A Handle to the Process</param> /// <returns>resultDTO</returns> public resultDTO QueryProcess(IntPtr handle) { IntPtr hToken; uint dwSize2;
uint dwLengthNeeded; uint dwError = ERROR_SUCCESS; TOKEN_MANDATORY_LABEL pTIL; int IntegrityLevel = 0;
TOKEN_VIRTUALIZATION_ENABLED tokenVirtualized; IntPtr pVirtualized = Marshal.AllocHGlobal(sizeof(TOKEN_VIRTUALIZATION_ENABLED));
OpenProcessToken(handle, TOKEN_QUERY, out hToken);
GetTokenInformation(hToken, TOKEN_INFORMATION_CLASS.TokenVirtualizationEnabled, pVirtualized, sizeof(TOKEN_VIRTUALIZATION_ENABLED), out dwSize2); tokenVirtualized = (TOKEN_VIRTUALIZATION_ENABLED)Marshal.ReadInt32(pVirtualized); Marshal.FreeHGlobal(pVirtualized);
if (TokenConstants.Virtualized == Convert.ToString(tokenVirtualized)) { result.virtualized = true; } else { result.virtualized = false; } if (!GetTokenInformation(hToken, (TOKEN_INFORMATION_CLASS)TokenIntegrityLevel, IntPtr.Zero, 0, out dwLengthNeeded)) { dwError = (uint)Marshal.GetLastWin32Error();
if (dwError == ERROR_INSUFFICIENT_BUFFER) { IntPtr StructPtr = Marshal.AllocHGlobal((int)dwLengthNeeded); try { if (GetTokenInformation(hToken, (TOKEN_INFORMATION_CLASS)TokenIntegrityLevel, StructPtr, dwLengthNeeded, out dwLengthNeeded)) { pTIL = (TOKEN_MANDATORY_LABEL)Marshal.PtrToStructure(StructPtr, typeof(TOKEN_MANDATORY_LABEL)); IntPtr SubAuthorityCount = GetSidSubAuthorityCount (pTIL.Label.Sid); int count = Marshal.ReadInt32(SubAuthorityCount); uint AuthCount = (uint)count - 1;
IntPtr IntegrityLevelPtr = GetSidSubAuthority(pTIL.Label.Sid, AuthCount); IntegrityLevel = Marshal.ReadInt32(IntegrityLevelPtr);
} if (IntegrityLevel < SECURITY_MANDATORY_MEDIUM_RID) {
result.integrity = "Low";
} else if (IntegrityLevel >= SECURITY_MANDATORY_MEDIUM_RID && IntegrityLevel < SECURITY_MANDATORY_HIGH_RID) { result.integrity = "Medium";
} else if (IntegrityLevel >= SECURITY_MANDATORY_HIGH_RID) { result.integrity = "High";
} } catch { } finally {
Marshal.FreeHGlobal(StructPtr);
}
}
} return result;
}
} }
|
|
|
|
|
|
|
Top 5 Must Read books for Every IT professional
|
|
10/22/2009 2:44:07 AM
|
I have compiled a list of Top 5 must reads for every IT professional. The books below are in no particular order as each one covers a different area that every IT professional would be required to know.

Windows Internals – Learn about the in depth workings of the Windows Operating System. A 5th edition is out now which covers Windows Vista and Windows Server 200
Programming Windows by Charles Petzold – Learn about Windows programming. The book starts with the basics taking you from the simplest concepts moving higher to Win32 API’s and then the MFC’s.
C# Cookbook 2nd edition – Good samples great programming and useful tricks that every .NET developer must know.
Windows 7 Secretes by Paul Thurrott – One of my favorite speaker’s and blogger has a book out on Windows 7 . A must read
The world is flat 3.0 – Get a good overall feel about IT before making that leap.
|
|
|
|
|
How To Burn CDs & DVDs In Windows 7
|
|
10/22/2009 2:32:07 AM
|
Take burning a CD or DVD for example, firstly it involved scouring the web for burning software which will work for you. Then depending on what software you choose, you could either end up handing over some money or you may have gotten a free program, regardless you will then have to download and install it. After all this you may be plagued with problems such as the software not detecting your burning drive or not recognizing discs in the drive.
Finally you would then have to open up your chosen software, navigate through some menus, which even your local tech enthusiast will struggle to understand, select the files you want and finally go hunting for that burn button.
With Windows 7, things have got a whole lot easier. Windows 7 has its own built in burning features so you can burn a CD/DVD in just a few clicks.
Take burning a CD or DVD for example, firstly it involved scouring the web for burning software which will work for you. Then depending on what software you choose, you could either end up handing over some money or you may have gotten a free program, regardless you will then have to download and install it. After all this you may be plagued with problems such as the software not detecting your burning drive or not recognizing discs in the drive.
Finally you would then have to open up your chosen software, navigate through some menus, which even your local tech enthusiast will struggle to understand, select the files you want and finally go hunting for that burn button.
With Windows 7, things have got a whole lot easier. Windows 7 has its own built in burning features so you can burn a CD/DVD in just a few clicks.
1. Select a file or files your want to burn to a disc, and click the Burn button at the top of your window.
2. You will then be presented with another window showing the files added to the burn list, so you will be able to add more files to the burn list if you want or you can just click burn to disc.
3. It will then check to make sure you have a disc inserted into your drive, and if you do you will be asked to add a name to the disc and you can choose a different write speed if you wish but it will automatically select the highest recording speed available for you.
4. And once you’ve clicked next it will begin burning the files to the disc, and then your done.
5. So it’s as simple as that, you will also be given the opportunity to create an additional copy of the disc if you want.
6. You can also easily burn iso image files just as easily
|
|
|
|
|
Windows 8 - 128 bit support?
|
|
10/22/2009 1:46:28 AM
|
128 Bit Support?
I was in a discussion with one of my friends on computing performance , we ended up talking about 32bit and 64bit operating system's. The next step would be 128 bit right?
I searched the net for 128 bit O.S or atleast plan's for a 128 bit system. I landed up on a Windows 8 page. The rumours are that it would support 128 bit for certain type of processors.
|
|
|
|
|
Windows 7 - Top 10 Features
|
|
10/22/2009 1:39:16 AM
|
1. Problem Steps Recorder You're probably very used to friends and family asking for help with their computer problems, yet having no idea how to clearly describe what's going on. Windows 7 include's an excellent new solution in the Problem Steps Recorder.
2. Burn images Windows 7 introduces a feature that other operating systems have had for years - the ability to burn ISO images to CDs or DVDs.
3. Create and mount VHD files Microsoft's Virtual PC creates its virtual machine hard drives in VHD files, and Windows 7 can now mount these directly so you can access them in the host system.
4. Troubleshoot problems If some part of Windows 7 is behaving strangely, and you don't know why, then click Control Panel > Find and fix problems (or 'Troubleshooting') to access the new troubleshooting packs. 5. Startup repair
6. Take control AppLocker is a new Windows 7 feature that ensures users can only run the programs you specify. Don't worry, that's easier to set up than it sounds: you can create a rule to allow everything signed by a particular publisher, so choose Microsoft, say, and that one rule will let you run all signed Microsoft applications.
7. Calculate more This offers many different unit conversions (length, weight, volume and more), date calculations (how many days between two dates?), and spreadsheet-type templates to help you calculate vehicle mileage, mortgage rates and more.
8. Switch to a projector Windows 7 now provides a standard way to switch your display from one monitor to another, or a projector - just press Win+P or run DisplaySwitch.exe and choose your preferred display
9. Get a power efficiency report
10. Understanding System Restore Using System Restore in previous versions of Windows has been something of a gamble. There's no way of telling which applications or drivers it might affect - you just have to try it and see.
|
|
|
|
|
Create MD5 hash code of a string
|
|
10/9/2009 3:56:19 AM
|
Two namespaces are used for creating MD5 hash code.
using System.Security.Cryptography; using System.Text;
Function which return MD5 hash code by passing string value.
protected string TexttoMD5 (string strInputString) { //Change the syllable into UTF8 code
byte[] pass = Encoding.UTF8.GetBytes(strInputString); MD5 md5 = new MD5CryptoServiceProvider(); string strHash = Encoding.UTF8.GetString(md5.ComputeHash(pass)); return strHash;
}
|
|
|
|
|
Time Saving Shortcuts for Windows
|
|
10/9/2009 3:52:20 AM
|
Keyboard/ Command Line shortcut that get you to particular control panel or windows. It makes you easier and faster to open the windows applets.
Following are some useful shortcuts :
1. Open Add/Remove Windows Components dialog box - usually accessed from Add/Remove Programs, 4 mouse-clicks that really slow you down if you do this on a frequent basis. (The Add/Remove Programs applet itself takes a while to open before you can press the Windows Components short-cut): control appwiz.cpl,,2 2. Add/Remove Programs - if you haven't already guessed it:appwiz.cpl 3. Network Connections applet: ncpa.cpl What would be really cool along with this: being able to get to TCP/IP Properties of a network interface... has anyone figured that out yet? 4. Display Properties: desk.cpl 5. To set resolution, et al from the Display properties, Settings tab:control desk.cpl,,3 6. System properties: sysdm.cpl System properties | Computer name: control sysdm.cpl,,1 System properties | Remote: control sysdm.cpl,,6 List of all values for System properties General(0), Computer Name(1), Hardware(2), Advanced(3), System Restore(4), Automatic Updates(5), Remote (6) 7. Active Directory Users & Computes: dsa.msc 8. Active Directory Domains & Trusts: domain.msc 9. Active Directory Sites & Services: dssite.msc 10. DNS Management Console: dnsmgmt.msc 11. Computer Management Console: compmgmt.msc 12. Disk Management: diskmgmt.msc 13. Show Desktop (minimizes all programs): Windows key + D 14. Hibernate (great for a short-cut that you can than place in the quick launch bar in the Task Bar: %windir%\system32\rundll32.exe powrprof.dll,SetSuspendState Hibernate 15. Event Viewer (an old NT favorite): eventvwr
|
|
|
|
|