Use guid pointer instead of char buf for GetActiveObject.