⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profile.h

📁 ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机理和API函数调用几乎相同。甚至可以兼容XP的程序。喜欢研究系统内核的人可以看一看。
💻 H
字号:
#ifndef __PROFILE_H
#define __PROFILE_H
/* Prototypes for the profile management functions */

#ifndef _OS_NT
short GetPrivateProfileString (char * AppName, char * KeyName,
			       char * Default, char * ReturnedString,
			       short Size, char * FileName);

int GetProfileString (char * AppName, char * KeyName, char * Default,
		      char * ReturnedString, int Size);

int GetPrivateProfileInt (char * AppName, char * KeyName, int Default,
			   char * File);

int GetProfileInt (char * AppName, char * KeyName, int Default);

int WritePrivateProfileString (char * AppName, char * KeyName, char * String,
				char * FileName);

int WriteProfileString (char * AppName, char * KeyName, char * String);
#endif /* not _OS_NT */

void sync_profiles (void);

void free_profiles (void);
char *get_profile_string (char *AppName, char *KeyName, char *Default,
			  char *FileName);

/* New profile functions */

/* Returns a pointer for iterating on appname section, on profile file */
void *profile_init_iterator (char *appname, char *file);

/* Returns both the key and the value of the current section. */
/* You pass the current iterating pointer and it returns the new pointer */
void *profile_iterator_next (void *s, char **key, char **value);

/* Removes all the definitions from section appname on file */
void profile_clean_section (char *appname, char *file);
int profile_has_section (char *section_name, char *profile);

/* Forgets about a .ini file, to disable updating of it */
void profile_forget_profile (char *file);

/* Removes information from a profile */
void free_profile_name (char *s);

#endif	/* __PROFILE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -