본문 바로가기

분류 전체보기275

XP, 2000에서 로그온된 사용자 이름 불러오기 51015 / Re:XP, 2000에서 로그온된 사용자 이름 불러오기작성자 : 장성호 (nasilso) 읽음 : 84 2007-10-24 오전 9:39:561. 로그온된 사용자의 이름 GetUserNameA 를 이용해서 ... void __fastcall TForm1::Button1Click(TObject *Sender) { char buf[128]; int size=128; GetUserNameA(buf,(unsigned long *)&size); ShowMessage(buf); } 쿠키폴더도 이렇게 찾을순 있겠죠? 2. 쿠키폴더 찾기 SHGetSpecialFolderLocation 이라는 특수폴더 경로 찾는 함수가 있습니다. #include #define FVSHOWINFO xxFVSHOWINFOxx.. 2008. 3. 4.
내문서, 바탕화면 Path 찾기 Retrieves the location of a special folder.WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation(; HWND hwndOwner, int nFolder, LPITEMIDLIST *ppidl ); ParametershwndOwnerHandle of the owner window that the client should specify if it displays a dialog box or message box.nFolderValue specifying the folder to retrieve the location of. This parameter can be one of the following values:CSIDL_BITBUCK.. 2008. 3. 4.
실행 파일의 위치를 확인하는 방법 1. GetCurrentDir()Returns the name of the current directory.Unit : SysUtilsCategory : file management routinesextern PACKAGE AnsiString __fastcall GetCurrentDir();DescriptionGetCurrentDir returns the fully qualified name of the current directory. 2. ExtractFilePath(Application->ExeName)Returns the drive and directory portions of a file name. Unit : SysUtilsCategory : file name utilitiesextern PA.. 2008. 3. 4.
현재 디렉토리 구하기 현재 디렉토리 구하기 프로그래밍 http://blog.naver.com/area1001/10015201487#include #include #include #include #define BUFSIZE MAX_PATH int _tmain(int argc, TCHAR **argv, TCHAR **envp) { TCHAR Buffer[BUFSIZE]; TCHAR changePath[] = "C:\\Documents and Settings\\deaa\\바탕 화면\\Directory\\ChangedCurrentDir"; DWORD dwRet;// if(argc != 2) // { // _tprintf(TEXT("Usage: Test \n")); // return 0; // } dwRet = GetCurrentDi.. 2008. 3. 4.
비트연산을 이용한 곱셈, 뺄셈 비트연산을 이용한 곱셈, 뺄셈타 싸이트에서 가지고 왔습니다. bit_divide.c bit_multiple.c 2008. 2. 26.
비스타 ActiveX 만들기 비스타용 ActiveX를 만들기 위해 많은 웹문서들과 가이드를 참고한 내용들을 정리했다. 내가 만든 ActiveX와 가장 잘 맞는 방법을 찾아서 적용하기까지 정말 많은 도움이 되었던 문서들을 만들어 주신분들 정말 고맙습니다.지금껏 관리자권한으로 실행되던 ActiveX에서의 작업들이 비스타에서 작동되지 않는다.관리자권한이 필요한 항목 - 파일생성 - 파일삭제 - 파일쓰기 - 파일이동 - 레지스트생성/쓰기/삭제 (HKLM)정의) 기존의 ActiveX --> A 관리자 권한 ActiveX --> B비스타에서도 일반사용자로 IE를 실행하여 A를 실행하여도 특정 폴더(사용자폴더)에는 위에 나열한 작업들이 잘 된다. 관리자권한이 필요한 부분은 임의의 디렉토리에 접근하여 작업을 하는 경우이다. 지금 사용하고 있는 A.. 2008. 2. 14.
Loading a DLL from memory Loading a DLL from memoryThis tutorial describes a technique how a dynamic link library (DLL) can be loaded from memory without storing it on the hard-disk first.Author:Joachim BauchContact:mail@joachim-bauch.deCopyright:Creative Commons License (by-sa)ContentsOverviewWindows executables - the PE format DOS header / stubPE headerSection headerLoading the library Allocate memoryCopy sectionsBase .. 2008. 2. 14.
비스타와 보안 (Vista & ActiveX) 관련(Memory Loading) 비스타와 보안 (Vista & ActiveX) 관련(Memory Loading)문서 버전0.1 (2007년02월09일)작성자 맥스페이퍼, 최원식 www.maxpaper.comsimon@maxpaper.com검색어비스타 Vista 델파이 Delphi 액티브X ActiveX OCX 보안 오류메모리 로딩비스타 Vista 의 경우, 파일을 쓰는 것이 특정 영역만 가능하기 때문에, DLL을 사용하는 Application의 경우, XP와 Vista간의 서로 다른 영역(디렉토리)에 써야 되는 경우가 발생한다. 이와 같은 경우를 문제점을 해결하기 위해선, 프로그램의 Resource영역에DLL을 갖고 있다, 곧바로 하드디스크상에 DLL을 쓰지 말고, 메모리에서 바로 로딩을할 수 있다면, 동일한 형태로 Win2000,XP.. 2008. 2. 14.
HOWTO: 파일을 Internet Information Server에 업로드하는 방법 HOWTO: 파일을 Internet Information Server에 업로드하는 방법http://support.microsoft.com/kb/184352이 문서가 적용되는 제품 보기.기술 자료 ID:184352마지막 검토:2005년 8월 24일 수요일수정:4.1이 문서는 이전에 다음 ID로 출판되었음: KR184352이 페이지에서요약 추가 정보 WebPost API 사용 HTTP 프로토콜 PUT 기능 사용 참조 요약프로그램 방식으로 클라이언트 응용 프로그램에서 Internet Information Server(IIS)에 파일을 업로드하는 데 사용할 수 있는 여러 가지 방법이 있습니다. 본 문서에서는 그러한 방법 중 일부를 제공하고 HTTP PUT 기능을 적용하는 방법을 설명합니다. 위로 가기추가 정보W.. 2008. 1. 17.
LIST