자유 게시판

AI에게 농락 당하는 중...

2024.03.20 23:59

라랑 조회:1469 추천:1

나 : PureBasic에서 BCD를 추가하는 방법을 알려줘~

----------------------------------------------------------

GPT : 

PureBasic에서는 BcdEditSetObjectElement 함수를 사용하여 RAM 디스크 옵션을 추가할 수 있습니다. 방법은 다음과 같습니다.

 

BcdEditSetObjectElement(objectIdentifier.s, elementName.s, elementValue.s, elementType = #PB_BcdEdit_String)

 

objectIdentifier는 요소를 추가하려는 객체의 식별자입니다. 이는 부트 로더, RAM 디스크 옵션 등의 GUID일 수 있습니다.

elementName은 추가하려는 요소의 이름입니다. RAM 디스크 옵션의 경우 일반적으로 설명, ramdisksdidevice, ramdisksdipath 등을 사용합니다.

elementValue는 요소의 값입니다.

elementType(선택 사항)은 설정되는 데이터 유형을 지정합니다. 기본값은 대부분의 경우에 적합한 #PB_BcdEdit_String입니다.

 
----- 열심히 코딩해보다 이상해서 다시 물어봄
 
나 : 
BcdEditSetObjectElement
 
ChatGPT : 
라는 함수나 명령을 언급하고 있는 것 같습니다 BcdEditSetObjectElement. 이 함수/명령은 기본적으로 PureBasic에 존재하지 않습니다. 그러나 이는 사용자 정의 함수일 수도 있고 프로젝트나 시스템에 특정한 라이브러리의 일부일 수도 있습니다.
 
BcdEditSetObjectElement잠재적으로 Windows의 BCD(부팅 구성 데이터) 항목 조작과 관련된 명령일 수 있습니다. 이 BcdEdit유틸리티는 실제로 Windows에서 이러한 목적으로 사용됩니다. PureBasic 내에서 BCD 항목을 조작하려는 경우 외부 라이브러리를 사용하거나 PureBasic의 명령을 BcdEdit통해 호출해야 할 수도 있습니다.RunProgram
 
PureBasic 내에서 사용하기 위한 특정 요구 사항이나 상황이 있는 경우 BcdEditSetObjectElement자세한 내용을 제공해 주시면 추가 지원을 해 드리겠습니다.
 
----------------------------------------------------------------- GPT왈 그런거 없지롱~~ ㅋㅋㅋ
 
혹시나해서 또 물어봄
나 : 
explain BcdEditSetObjectElement in PureBasic
영어로 물어볼수록 정확하다고 해서.....
 
 
그랬더니 아래와같이 대답함 번역기 돌려보면 앞쪽의 해석이 대충 
PureBasic에서 BcdEditSetObjectElement 함수는 개체의 BCD(부팅 구성 데이터) 요소를 수정하는 데 사용됩니다.
BCD는 Windows 운영 체제의 부팅 시 구성 데이터를 위한 펌웨어 독립적인 데이터베이스입니다.
 
PureBasic의 BcdEditSetObjectElement에 대한 기본 설명은 다음과 같습니다. ..... 
 
chatGPT :
In PureBasic, the BcdEditSetObjectElement function is used to modify Boot Configuration Data (BCD) elements of an object. BCD is a firmware-independent database for boot-time configuration data in Windows operating systems.
 
Here's a basic explanation of BcdEditSetObjectElement in PureBasic:
 
Functionality: This function allows you to modify a specific BCD element of a BCD object. The BCD object can be a boot loader entry, operating system loader, etc.
 
Syntax:
 
plaintext
Copy code
BcdEditSetObjectElement(ObjectType, ObjectGuid$, ElementName$, Value$, ValueType)
ObjectType: Specifies the type of BCD object you want to modify. It could be BcdOSLoader, BcdLibraryObject, BcdDeviceObject, etc.
ObjectGuid$: GUID (Globally Unique Identifier) of the BCD object you want to modify.
ElementName$: Name of the BCD element you want to modify.
Value$: The new value you want to assign to the specified BCD element.
ValueType: Specifies the type of the value. It could be String, Integer, Boolean, etc.
Example:
 
purebasic
Copy code
; Modify the description of a boot loader entry
BcdEditSetObjectElement(#BcdOSLoader, "{current}", "Description", "My New OS Description", #BcdString)
This example changes the description of the current boot loader entry to "My New OS Description".
 
Error Handling: The function might return an error code if it fails to modify the BCD element. Error handling should be implemented to handle such cases.
 
Requirements: This function relies on the BcdEdit.exe utility present in Windows systems. Ensure that the system has necessary permissions and the BcdEdit.exe utility is available in the system path for this function to work correctly.
 
Caution: Modifying BCD elements can have significant effects on the system's boot process. Incorrect modifications may render the system unbootable. Therefore, it's essential to be cautious and have a good understanding of the changes being made. Additionally, creating backups before modifying BCD elements is advisable.
 
------------ 정상적인 코드 넣을때 틀린 걸로 바꿔서 토하면 이건 아닌가보다 해야하는데... 아쉬울 때 또 다시 찾게되고 농락당하고 
누가 학습하는 건지 헷갈리게 하는 녀석
번호 제목 글쓴이 조회 등록일
[공지] 자유 게시판 이용간 유의사항 (정치, 종교, 시사 게시물 자제) [1] gooddew - -
47339 꼼지락.... [14] OldMaC 865 04-21
47338 카카오톡 포터블 자동으로 업데이트 되었는데 [4] 소소생 294 04-21
47337 공유기.외장하드를 이용해서 간이 나스(NAS) 만들기 [2] 엄마갯돈 696 04-20
47336 자작 나스구축 [3] 엄마갯돈 663 04-20
47335 PE에서 쓸수있는 클리너 [5] 양치기영감 701 04-20
47334 최근 삼성폰 as 후기 뷰리풀투데 707 04-20
47333 알리에서 겪었던 사례들 [3] 뷰리풀투데 651 04-20
47332 알리 알리 알라셩~ 자꾸 보다 스며든 잡생각 일기 라랑 308 04-20
47331 알리 때문에 [7] 긍지버림 880 04-19
47330 Windows X-Lite 코난 영어버전 테스트... [9] [벗님] 446 04-19
47329 코렐드로우 2022 한글패치 올려 줄 수 있나요? [1] 찰리인생 287 04-19
47328 제가 왕초보라서 [5] 청락 514 04-19
47327 아덥터 질문좀 전기를 잘몰라서요 [7] 달맞이꽃 555 04-19
47326 이번에는 트럼세탁기 분해소제 해봤어요. [2] 솔라 460 04-19
47325 컴퓨터에서 가끔 팬 소리가 나다가 말면 이게 고장 신호인... [14] 복두꺼비 565 04-19
47324 컴퓨터 살 때, 산 후... 오래된 흔한 이야기인데... [7] 라랑 763 04-19
47323 foobar2000 음원 정보 수정 관련... [3] joyleehk 309 04-19
47322 알리 반품, 환불 신박하네요! [8] 양치기영감 992 04-18
47321 PC카톡이 업뎃되더니 광고제거가 안되네요ㅠ [2] 『ⓖⓤⓝ』 490 04-18
47320 자동차은근히 부촌에 많이 보이는 차 [1] FINAL 850 04-18
XE1.11.6 Layout1.4.8