C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 팁&트릭
C++Builder Programming Tip&Tricks
[655] 비스타 게임 개발할 때 - GDF(Game Definition File)
김호광 [testcode] 7066 읽음    2007-05-30 14:49
GDF(Game Definition File)라는 기능이 있습니다.

한마디로 게임물 등급제입니다. 미국의 경우 ESRB, PEGI 또는 기타 등급 체계에 따른 등급 및 설명자를 포함하도록 변경되었습니다.

한국은 게등위와 이야기 중이라고 합니다.

심플한 문제는 바이너리에서 이 부분은 당연히 bool 값을 크랙이 가능하더군요 ㅎㅎㅎ

아래는 관련 함수입니다.

IGameExplorer::VerifyAccess
Checks whether the user has permission to play the game in the specified GDF.


HRESULT VerifyAccess(
  const BSTR bstrGDFBinaryPath,
  BOOL* pfHasAccess
);

Parameters

bstrGDFBinaryPath
  [in] A string that contains the fully qualified path of the binary that contains the game definition file (GDF). The GDF must be present in the default resource location.

pfHasAccess
   [out] Whether the current game will be allowed to run for the current user, given the current parental controls settings.

Return Values
   Returns an HRESULT. Use the SUCCEEDED and FAILED macros to test the return value of this function.

Remarks

  This method does not require IGameExplorer::AddGame to be called, previously or at any other time. This method can be used at any time to verify whether the current user can run a binary file associated with a GDF.

Games should call this method every time that they are run. By doing so, parental controls work even for a game that was installed on a FAT32 volume, which does not support ACLs, to lock the user out of the game.

Requirements

   Header: Declared in GameUX.h.




참조 자료

http://msdn2.microsoft.com/en-us/library/bb173436.aspx

http://msdn2.microsoft.com/en-us/library/bb206359.aspx

http://msdn2.microsoft.com/en-us/library/bb173459.aspx


testcode~

+ -

관련 글 리스트
655 비스타 게임 개발할 때 - GDF(Game Definition File) 김호광 7066 2007/05/30
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.