How to shoot yourself in the foot with const (or the lack thereof)

It has long puzzled me why various Win32 functions take non-const string parameters, when clearly they have no business manipulating the string.  Take, for instance, GetNamedSecurityInfo: DWORD GetNamedSecurityInfo( LPTSTR pObjectName, SE_OBJECT_TYPE ObjectType, SECURITY_INFORMATION SecurityInfo, PSID* ppsidOwner, PSID* ppsidGroup, PACL* ppDacl, PACL* ppSacl, PSECURITY_DESCRIPTOR* ppSecurityDescriptor ); I can’t imagine why this function should ever need to…

2

C'mon, all your Friends are Doing it

A bunch of the guys on the team I work for have been starting up blogs.  I started feeling left out, which made me very angry. It appears all blogs start with “Hi, I’m a developer who does X and I’m going to talk about Y and maybe Z.”It’s all part of Microsoft’s new image…

3