11#define WIN32_LEAN_AND_MEAN
21 printf(
" Usage: smssTest.exe -g|c|s|d\n\
22 g - generate test files\n\
23 c - check files after reboot\n\
24 s - show registry entry\n\
25 d - delete registry value\n");
31 memset(lpBuff, 0,
sizeof(lpBuff));
33 DWORD lSize =
sizeof(lpBuff);
39 printf(
"RegOpenKeyEx err=%ld \n", retValue);
45 printf(
"RegQueryValueEx err=%ld \n", retValue);
67 printf(
"RegOpenKeyEx err=%ld \n", retValue);
73 printf(
"RegDeleteValue err=%ld \n", retValue);
88 const char szxReplacedFile[] =
"c:\\testFileIsReplaced";
89 const char szxMovedFileWithRepl[] =
"c:\\testFileShouldBeMovedW";
90 const char szxMovedFile[] =
"c:\\testFileShouldBeMoved";
91 const char szxNewMovedFile[] =
"c:\\testFileIsMoved";
92 const char szxDeletedFile[] =
"c:\\testFileShouldBeDeleted";
94 memset(sBuf, 0xaa,
sizeof(sBuf));
145 szxMovedFileWithRepl,
164 if( !fReturnValue ) {
175 if( !fReturnValue ) {
183 szxMovedFileWithRepl,
186 if( !fReturnValue ) {
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
#define RegCloseKey(hKey)
#define FILE_ATTRIBUTE_NORMAL
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
#define MOVEFILE_REPLACE_EXISTING
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
DWORD WINAPI GetLastError(void)
#define MOVEFILE_DELAY_UNTIL_REBOOT
#define HKEY_LOCAL_MACHINE