MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / SK_File_GetModificationTime

Function SK_File_GetModificationTime

src/ini.cpp:97–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 L" SpecialK " ); }
96
97BOOL
98SK_File_GetModificationTime (const wchar_t* wszFile, FILETIME* pfModifyTime)
99{
100 if (! pfModifyTime)
101 return FALSE;
102
103 SK_AutoHandle hFile (
104 CreateFileW ( wszFile, GENERIC_READ,
105 FILE_SHARE_READ, nullptr,
106 OPEN_EXISTING,
107 FILE_ATTRIBUTE_NORMAL, nullptr )
108 );
109
110 if (hFile.m_h != 0)
111 {
112 FILETIME ftCreation, ftAccess;
113
114 return
115 GetFileTime (hFile.m_h, &ftCreation, &ftAccess, pfModifyTime);
116 }
117
118 return FALSE;
119}
120
121bool
122iSK_INI::reload (const wchar_t *fname)

Callers 2

reloadMethod · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected